From millardymecki@sympatico.ca Tue Jul 1 01:52:50 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 30 Jun 2003 20:52:50 -0400 Subject: [Mapserver-users] arcims emulation and arcexplorer References: <2C5B92C6-AB29-11D7-A56C-000393B98B56@frii.com> Message-ID: <00b301c33f6b$18f70bc0$8000a8c0@pauls> Hi Would getting python mapscript working require compiling mapserver(i've only used the windows binaries so far)? thx, Paul ----- Original Message ----- From: "Sean Gillies" To: "Paul Dymecki" Cc: "Mapserver Users" Sent: Monday, June 30, 2003 2:32 PM Subject: Re: [Mapserver-users] arcims emulation and arcexplorer > Yes. > > Sean > > On Monday, June 30, 2003, at 11:34 AM, Paul Dymecki wrote: > > > Does anyone know if it's possible to have both pythonMapscript and > > phpMapscript working on the same mapserver install, > > thx, > > Paul > > > -- > Sean Gillies > sgillies at frii dot com > http://www.frii.com/~sgillies > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From llizzff" HI I'm use PHP/MAPSCRIPT model,when i use a LABELITEM in the LAYER,the mapserver will refuse to work and show the follow message: Warning: MapServer Error in msOGRLayerInitItemInfo(): Invalid Field name: text in c:\apache\htdocs\infopicker\include\MapClass.php on line 102 Is there something wrong? TIA Jack >I'm not familiar with .TAB datasets, but perhaps you need a LABELITEM in >your LAYER so mapserver knows what field to use as label text. > > >On Mon, 2003-06-30 at 12:16, llizzff wrote: >> The MapServer refuse to draw the actual annotation text. >> >> When I set the styleitem auto,the mapserver will draw the actual >> >> annotation text,but it is not expect. when the styleitem auto was >> >> annotated, the mapserver can only render some dots. >> >> The follow snatch of mapfile is used. >> >> LAYER >> NAME hkdb >> TYPE point >> STATUS on >> Connectiontype OGR >> CONNECTION "c:\apache\htdocs\model\model\mapdatax\placenm_text_t7.TAB" >> #STYLEITEM "AUTO" >> CLASS >> OUTLINECOLOR 128 128 128 >> COLOR 128 128 128 >> LABEL >> ANTIALIAS true >> COLOR 255 0 0 >> FONT fritqat-italic >> TYPE truetype >> SIZE 8 >> POSITION auto >> PARTIALS true >> OUTLINECOLOR 255 255 255 >> END >> END >> END >> >> Configuration: >> >> Win2K, apache1.3.27 >> PHP 4.23 >> php_mapscript_40.dll(this is in the mapserver-4.0-dev-win32-php4.3.2.zip) >> >> Best Regards >> >> >> >> >> >> --http://www.eyou.com >> --Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡ >> >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> > > > --http://www.eyou.com --Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡ From llizzff" Hello everyone I want to get the annotation text by run php_mapscript. When I use the STYLEITEM "AUTO",The mapsever will render the annotation text but it's not expected.However,once the STYLEITEM "AUTO" is annotated,there will be only some dots displayed. When the LABLEITEM or CLASSITEM was used in the layer, The followed will be reported: Warning: MapServer Error in msDrawMap(): Failed to draw layer named 'text'. in c:\apache\htdocs\temp\index.php on line 8 When I use php_mapscript_37.dll The error report will be this : Warning: MapServer Error in msOGRLayerInitItemInfo(): Invalid Field name: name in c:\apache\htdocs\temp\index.php on line 8 The code is followed. Is there somebody can help me? Cordially! TIA JACK Mapfile: NAME FIRSTMAP SIZE 800 800 STATUS ON EXTENT 797400.424232 791289.423886 867030.108732 860768.523756 UNITS meters IMAGECOLOR 255 255 255 INTERLACE ON FONTSET etc/fonts.txt WEB IMAGEPATH "C:\Apache\htdocs\model\map\" IMAGEURL "/model/map/" END LAYER NAME "text" TYPE point STATUS ON CONNECTIONTYPE OGR CONNECTION "C:\aa\placenm_text_t7.TAB" #STYLEITEM "AUTO" #LABELITEM "name" #CLASSITEM "NAME" CLASS COLOR 110 50 100 OUTLINECOLOR 200 200 200 LABEL ANGLE AUTO SIZE 80 TYPE TRUETYPE COLOR 255 0 0 SHADOWCOLOR 255 255 230 SHADOWSIZE 1 1 FONT fritqat ANTIALIAS TRUE POSITION AUTO BUFFER 10 MINDISTANCE 20 END END END END index.php: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Example 1: Displaying a map
>
Hi! I write a several map files, and most part of them are same. so i wonder if there a way make one map file include another map file just like the include header file in c/c++. If several map files include a same same part, then make this part alone, will ease the maintain work. do you think so? ===== Remote Scensing Satellite Ground Station Chinese Academy of Science _________________________________________________________ Do You Yahoo!? ÍøÁµµÄÚ¹ÊÍ£ºÕæÇ黹ÊÇ·Å×Ý£¿ http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove From akoper@ameritech.net Tue Jul 1 05:28:59 2003 From: akoper@ameritech.net (Andrew Koper) Date: Tue, 1 Jul 2003 00:28:59 -0400 Subject: [Mapserver-users] getting started Message-ID: <0a7601c33f89$4b9aa000$baf9fea9@hppav> This is a multi-part message in MIME format. ------=_NextPart_000_0A73_01C33F67.C39F8A60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want to use mapserver in my cgi-bin at my ISP. I am having trouble. I downloaded mapserver-4.0b.tar.gz and unpacked it on my windows PC. I = want to use the *NIX binary. Trying to follow the documentation, I = FTP'ed mapserv.c and mapserv.h to the cgi-bin on my server (in ASCII = mode, permissions are 755). I tried to run it from the browser and the shell, and didn't get "No = query information to decode...". I'm guessing I'm trying to run part of the "un-make'd" server, but it is = not clear where to get the *NIX precompiled binary Thanks in advance, -Andrew Koper ------=_NextPart_000_0A73_01C33F67.C39F8A60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I want to use mapserver in my cgi-bin = at my=20 ISP.  I am having trouble.
 
I downloaded mapserver-4.0b.tar.gz and unpacked=20 it on my windows PC.  I want to use the *NIX binary.  Trying = to follow=20 the documentation, I FTP'ed mapserv.c and mapserv.h to the cgi-bin on my = server=20 (in ASCII mode, permissions are 755).
 
I tried to run it from the browser and = the shell,=20 and didn't get "No query information to decode...".
 
I'm guessing I'm trying to run part of = the=20 "un-make'd" server, but it is not clear where to get the *NIX = precompiled=20 binary
 
Thanks in advance,
-Andrew = Koper
------=_NextPart_000_0A73_01C33F67.C39F8A60-- From ruzicka@usbrno.cz Tue Jul 1 06:34:27 2003 From: ruzicka@usbrno.cz (USB) Date: Tue, 1 Jul 2003 07:34:27 +0200 Subject: [Mapserver-users] autorotate labels Message-ID: <01C33FA3.4B8C4950@usb> FONTSET is the path to a text file which maps short names to the actual font name. E.g. If all your fonts are in a directory: /fonts/ or C:\fonts\ FONTSET "C:\fonts\fontset" Where the fontset file would look like: helbi helbi___.ttf On Mon, 2003-06-30 at 10:20, Valerio wrote: > hi, > I have a problem with autorotated labels in line shapefile class. > Each time I use an integer value for SIZE or TRUETYPE value > for TYPE parameters map doesn't redraw. > If I set (i.e.) SIZE= tiny, application works correctly without > rotating the labels.... > > This is the mapfile: > > MAP > NAME "Test" > STATUS ON > EXTENT 1316000 4034000 2310000 5241000 > SIZE 600 600 > FONTSET arial.ttf > SHAPEPATH "shape" > IMAGECOLOR 255 255 255 > UNITS METERS > ..... > #Contours > LAYER > NAME "Curve di livello" > TYPE LINE > STATUS DEFAULT > DATA CurveL > CLASSITEM 'CODICE' > MAXSCALE 10000 > MINSCALE 10 > LABELITEM "VALORE" > CLASS > NAME "Main contour" > LABEL > TYPE TRUETYPE > FONT arial > COLOR 100 100 100 > OUTLINECOLOR 0 0 0 > SIZE 11 > ANGLE AUTO > END > EXPRESSION "0801" > OUTLINECOLOR 50 50 50 > COLOR 50 50 50 > END > CLASS > EXPRESSION "0802" > OUTLINECOLOR 180 180 180 > COLOR 180 180 180 > END > CLASS > EXPRESSION "0803" > OUTLINECOLOR 250 250 250 > COLOR 250 250 250 > END > # End of Contours > ....... > END > I use MapServer 366 on win2k. > > Any help appreciated, > thanks > > Valerio > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From watari@intage.co.jp Tue Jul 1 06:52:55 2003 From: watari@intage.co.jp (Naoyuki Watari) Date: Tue, 1 Jul 2003 14:52:55 +0900 Subject: [Mapserver-users] MutiByte language on Mapserver Message-ID: <01e901c33f95$04df83e0$a5540c0a@mictokyo.co.jp> Hi, It's may be FAQ. I'm in trouble with Japanese language.... I tried building mapserver environment on Win2k with PostGIS (mapserve is win-exe binary, PostgreSQL is working on cygwin). The label is fine if the data were single-byte characters(like numeric or alphabetical), but it goes wrong if the data were Japanese characters. Does anyone know how can I display Japanese-mutibyte characters on Mapserver? Anyone has experiences building the server with multi-byte environment (Chinese or Hungle etc.), please help me. Thanks. Naoyuki Watari From nacional@cbs.umn.edu Tue Jul 1 07:17:11 2003 From: nacional@cbs.umn.edu (Pericles S. Nacionales) Date: 01 Jul 2003 01:17:11 -0500 Subject: [Mapserver-users] getting started In-Reply-To: <0a7601c33f89$4b9aa000$baf9fea9@hppav> References: <0a7601c33f89$4b9aa000$baf9fea9@hppav> Message-ID: <1057040231.27913.44.camel@arceuthobium.ecology.umn.edu> Andrew, Greetings! The message tells you that you actually compiled MapServer properly but you haven't fed it anything yet. To get yourself started, download the MapServer Demo at http://mapserver.gis.umn.edu/dist/itasca3.5.tar.gz Untar it to your web server's document root directory and edit the demo_init.html to change the "map" and the :map_web..." hidden variable values to the correct paths in your server. You also need to check that the "program" variable has the path to your mapserv CGI program. Finally, make sure this line:
correctly points to your mapserver CGI program. You run the demo by opening the demo_init.html page on your browser: http:///itasca/demo_init.html I hope that works for you. You're almost there... -Perry On Mon, 2003-06-30 at 23:28, Andrew Koper wrote: > I want to use mapserver in my cgi-bin at my ISP. I am having trouble. > > I downloaded mapserver-4.0b.tar.gz and unpacked it on my windows PC. > I want to use the *NIX binary. Trying to follow the documentation, I > FTP'ed mapserv.c and mapserv.h to the cgi-bin on my server (in ASCII > mode, permissions are 755). > > I tried to run it from the browser and the shell, and didn't get "No > query information to decode...". > > I'm guessing I'm trying to run part of the "un-make'd" server, but it > is not clear where to get the *NIX precompiled binary > > Thanks in advance, > -Andrew Koper -- Pericles S. Nacionales University of Minnesota From nwoe@privat.utfors.se Tue Jul 1 07:46:55 2003 From: nwoe@privat.utfors.se (=?iso-8859-1?Q?niklas_w=F6rmann?=) Date: Tue, 1 Jul 2003 08:46:55 +0200 Subject: [Mapserver-users] getting img by id or name References: <0a7601c33f89$4b9aa000$baf9fea9@hppav> <1057040231.27913.44.camel@arceuthobium.ecology.umn.edu> Message-ID: <001701c33f9c$933f67c0$8300a8c0@big> Hi! mapserver is up and running, great! now i am planning on making these horrendous cgi-calls from flash, and getting images back. how would i do that? i now pretty well how to construct the cgi-strings, but since i dont know beforehand the name of the image, where do i look for the resulting image? another issue is; once the image is generated OK, how would i translate mousecoordinates (in pixels) to real world lat-long? TIA niklas wörmann älvsjö sweden From steffen.gebhardt@informus.de Tue Jul 1 08:25:02 2003 From: steffen.gebhardt@informus.de (Steffen Gebhardt) Date: Tue, 1 Jul 2003 09:25:02 +0200 Subject: [Mapserver-users] Rudimentary Layer display Problem In-Reply-To: <20030630170002.12631.80508.Mailman@lists.gis.umn.edu> References: <20030630170002.12631.80508.Mailman@lists.gis.umn.edu> Message-ID: <20030701072330.B3DBE24941@mfa1.informus.de> Hallo everybody, I faced a (hopefully) very simple problem. In my application the layers I selected to display aren't preselected when generating the new Image, so by zooming or panning I always have to select them again. Can anybody tell me foolish guy how to do that? I'm using simple application, creating all files dynamically in a java application. Just .map and .html. Thanks Steffen From Gunter.Rieth@stadt.mainz.de Tue Jul 1 08:46:59 2003 From: Gunter.Rieth@stadt.mainz.de (Gunter.Rieth@stadt.mainz.de) Date: Tue, 1 Jul 2003 09:46:59 +0200 Subject: Antwort: [Mapserver-users] Rudimentary Layer display Problem In-Reply-To: <20030701072330.B3DBE24941@mfa1.informus.de> Message-ID: ... maybe your html needy to look like this Kataster
using : [Kataster_check] hope this will help Gruß Gunter Rieth Kommunale Datenzentrale Mainz -Eigenbetrieb der Stadt Mainz- Hechtsheimer Straße 35 55131 Mainz Tel: 06131 - 12 - 3557 Fax: 06131 - 12 - 2267 eMail: mailto:Gunter.Rieth@stadt.mainz.de Notesmail: Gunter Rieth/Dez1/Mainz URL:http/www.mainz.de Steffen Gebhardt Gesendet von: mapserver-users-admin@lists.gis.umn.edu 01.07.2003 09:25 An mapserver-users@lists.gis.umn.edu Kopie Thema [Mapserver-users] Rudimentary Layer display Problem Hallo everybody, I faced a (hopefully) very simple problem. In my application the layers I selected to display aren't preselected when generating the new Image, so by zooming or panning I always have to select them again. Can anybody tell me foolish guy how to do that? I'm using simple application, creating all files dynamically in a java application. Just .map and .html. Thanks Steffen _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From palle@mail-online.dk Tue Jul 1 08:48:14 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Tue, 01 Jul 2003 09:48:14 +0200 Subject: [Mapserver-users] Rudimentary Layer display Problem In-Reply-To: <20030701072330.B3DBE24941@mfa1.informus.de> References: <20030630170002.12631.80508.Mailman@lists.gis.umn.edu> <20030701072330.B3DBE24941@mfa1.informus.de> Message-ID: Hi, If java is involved it doiesn't sound that simple. However, if your html includes a form, be sure it includes a line something like: Best regards Palle Due Larsen Carl Bro GIS&IT -----Original Message----- From: Steffen Gebhardt To: mapserver-users@lists.gis.umn.edu Date: Tue, 1 Jul 2003 09:25:02 +0200 Subject: [Mapserver-users] Rudimentary Layer display Problem > Hallo everybody, > > I faced a (hopefully) very simple problem. In my application the > layers I > selected to display aren't preselected when generating the new Image, > so by > zooming or panning I always have to select them again. Can anybody > tell me > foolish guy how to do that? > I'm using simple application, creating all files dynamically in a > java > application. Just .map and .html. > > Thanks > Steffen > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users Få en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille konkurrence på nettet, og vind et gavekort på 50.000 kroner... KLIK HER: www.directoffice.dk/konkurrence From schut@sarvision.com Tue Jul 1 08:57:53 2003 From: schut@sarvision.com (Vincent Schut) Date: Tue, 1 Jul 2003 09:57:53 +0200 Subject: [Mapserver-users] MapServer --with-regex=system error In-Reply-To: <001401c33f1e$b2a655c0$c452f6c0@capebtg.com> References: <001401c33f1e$b2a655c0$c452f6c0@capebtg.com> Message-ID: <200307010957.53758.schut@sarvision.com> Greg, a couple of things to check: - somewhere you should have (or make) a phpinfo.php page. Check there if it really uses the system regex. Not by reading the configure options in the upper part of this page - they're just copied, not matter if they were good or bad - but scroll down till you find an item that tells you what regex php uses. - Usually, if you compile php without explicitly setting a install dir (--prefix=...), it installs in /usr/local. Maybe you still have some remnants of older php installations; php packages that come with linux distributions usually install in /usr. Mapserver uses a program that gets installed along with php, php-config, to get information about regex used. If there is both a php-config in /usr/bin and in /usr/local/bin, the old one in /usr/bin will probably be found first and get used, and give mapserver old info about the regex used. Make sure you remove all parts of older php installations before installing your own compiled php. Or configure it with --prefix=/usr, then it will overwrite your old version. Regards, Vincent Schut. On Monday 30 June 2003 17:45, Craig T. Booth wrote: > Hello all, > > I've wrestled with my Mapserver install for a couple of days and I think > I've hit a wall. I have reconfigured and rebuilt PHP with the regex=system > flag but I continue to receive the MapScript error. Any suggestions would > be greatly appreciated. > > Many Thanks, > Craig Booth > > configure: error: > !!! The current version of PHP MapScript has some problems with !!! > !!! PHP4's bundled regex. Until we figure the solution to the > !!! !!! problem, the workaround is to compile PHP4 with the system regex > !!! !!! Please re-configure and re-compile PHP4 with --with-regex=system > !!! !!! and then re-configure and re-compile MapServer. > !!! > > My PHP 4.2.2 config flags... > ./configure --enable-inline-optimization --with-db3 --with-png-dir=/usr/lib > --with-gd-dir=/usr/local/lib --enable-gd-native-ttf --with-ttf --with-g dbm > --with-gettext --with-jpeg-dir=/usr/lib --with-openssl --with-xml > --with-zlib --with-layout=GNU --enable-ftp --enable-magic-quotes > --enable-saf e-mode --enable-sockets --enable-track-vars > --with-pgsql=/usr/local/pgsql --enable-dbx --with-regex=system > > My Mapserver 3.6 config flags... > ./configure --with-proj=/usr/local --with-jpeg=/usr/lib > --with-gdal=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg config -- > with-php=/usr/local/include/php/main --with-tiff-dir=/usr/local/lib > --with-gd-dir=/usr/local/lib --with-freetype=/usr/lib --with-png=/usr/lib -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From gijs@atsence.nl Tue Jul 1 09:57:05 2003 From: gijs@atsence.nl (Gijs Epping) Date: Tue, 1 Jul 2003 10:57:05 +0200 Subject: [Mapserver-users] rectObj() function for phpmapserver????? In-Reply-To: <200307010957.53758.schut@sarvision.com> Message-ID: <000001c33fae$bf4c3d90$0200a8c0@at11> Hello, Is there a rectObj() function for the php version of mapserver ( I couldn't find it) the one below is for the perl version. Thanks in advance G my $rectangle = new mapscript::rectObj(); $rectangle->{minx} = 0; $rectangle->{miny} = 0; $rectangle->{maxx} = 10; $rectangle->{maxy} = 10; my $query_status = $st_poly_layer->queryByRect($map,$rectang); my $rectang = $sing_shpfile->{bounds}; From palle@mail-online.dk Tue Jul 1 10:06:20 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Tue, 01 Jul 2003 11:06:20 +0200 Subject: [Mapserver-users] Rudimentary Layer display Problem In-Reply-To: References: <20030630170002.12631.80508.Mailman@lists.gis.umn.edu> <20030701072330.B3DBE24941@mfa1.informus.de> Message-ID: Hi again, You should of course do as Günter Rieth says. My example is from an application, where javascript handles the layer selection. Best regards Palel Due Larsen Carl Bro GIS&IT -----Original Message----- From: "Palle Due Larsen" To: "Steffen Gebhardt" , mapserver-users@lists.gis.umn.edu Date: Tue, 01 Jul 2003 09:48:14 +0200 Subject: Re: [Mapserver-users] Rudimentary Layer display Problem > Hi, > > If java is involved it doiesn't sound that simple. However, if your > html > includes a form, be sure it includes a line something like: > > > Best regards > > Palle Due Larsen > Carl Bro GIS&IT > > -----Original Message----- > From: Steffen Gebhardt > To: mapserver-users@lists.gis.umn.edu > Date: Tue, 1 Jul 2003 09:25:02 +0200 > Subject: [Mapserver-users] Rudimentary Layer display Problem > > > Hallo everybody, > > > > I faced a (hopefully) very simple problem. In my application the > > layers I > > selected to display aren't preselected when generating the new > Image, > > so by > > zooming or panning I always have to select them again. Can anybody > > tell me > > foolish guy how to do that? > > I'm using simple application, creating all files dynamically in a > > java > > application. Just .map and .html. > > > > Thanks > > Steffen > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > Få en gratis emailkonto her: www.mail-online.dk > ----------------------------------------------- > Deltag i en lille konkurrence på nettet, og > vind et gavekort på 50.000 kroner... > KLIK HER: www.directoffice.dk/konkurrence > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > Få en gratis emailkonto her: www.mail-online.dk > ----------------------------------------------- > Deltag i en lille konkurrence på nettet, og > vind et gavekort på 50.000 kroner... > KLIK HER: www.directoffice.dk/konkurrence > From braulioen@ono.com Tue Jul 1 10:20:26 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Tue, 01 Jul 2003 11:20:26 +0200 Subject: [Mapserver-users] Problem with Mapscript 3.7 Message-ID: <132df7130b4a.130b4a132df7@ono.com> Hi at all: I've installed Mapscript 3,6 and I want to install Mapscript 3.7. I've installed PHP 4.3.0. I've unloaded the compiled file of DM Solutions: mapserver-3.7-dev-win32-php4.3.0-gd2.zip I copy the archives php_*.dll to the directory of extensions of PHP, and them position in the file php.ini: extension=php_mapscript_37.dll extension=php_proj.dll But when I execute any code PHP they appear two windows of error: Unknown(): Unable to load dinamic library 'C:\php-4.3.0-Win32 \extensions\php_mapscript_37.dll' Unknown(): Unable to load dinamic library 'C:\php-4.3.0-Win32 \extensions\php_proj.dll' and nevertheless, the files exists. If I return to the previous file (3.6): extension=php_mapscript_36.dll everything goes well. I do not know which can be the problem. Thanks in advance. Braulio Moreno. From schut@sarvision.com Tue Jul 1 10:48:59 2003 From: schut@sarvision.com (Vincent Schut) Date: Tue, 1 Jul 2003 11:48:59 +0200 Subject: [Mapserver-users] Problem with Mapscript 3.7 In-Reply-To: <132df7130b4a.130b4a132df7@ono.com> References: <132df7130b4a.130b4a132df7@ono.com> Message-ID: <200307011148.59880.schut@sarvision.com> Braulio, check the server log. It probably gives some more info on why php could not load mapscript. Cheers, Vincent. On Tuesday 01 July 2003 11:20, braulioen@ono.com wrote: > Hi at all: > > I've installed Mapscript 3,6 and I want to install Mapscript 3.7. I've > installed PHP 4.3.0. I've unloaded the compiled file of DM Solutions: > > mapserver-3.7-dev-win32-php4.3.0-gd2.zip > > I copy the archives php_*.dll to the directory of extensions of PHP, > and them position in the file php.ini: > > extension=php_mapscript_37.dll > extension=php_proj.dll > > But when I execute any code PHP they appear two windows of error: > > Unknown(): Unable to load dinamic library 'C:\php-4.3.0-Win32 > \extensions\php_mapscript_37.dll' > Unknown(): Unable to load dinamic library 'C:\php-4.3.0-Win32 > \extensions\php_proj.dll' > > and nevertheless, the files exists. If I return to the previous file > (3.6): > > extension=php_mapscript_36.dll > > everything goes well. I do not know which can be the problem. > Thanks in advance. > > Braulio Moreno. > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From braulioen@ono.com Tue Jul 1 11:40:04 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Tue, 01 Jul 2003 12:40:04 +0200 Subject: [Mapserver-users] rectObj() function for phpmapserver????? Message-ID: <135c9d136a29.136a29135c9d@ono.com> Hello, the function to create a new RectObj object in Mapscript is: $rectangle = ms_newRectObj(); Braulio. ----- Mensaje Original ----- Remitente: Gijs Epping Fecha: Martes, Julio 1, 2003 10:57 am Asunto: [Mapserver-users] rectObj() function for phpmapserver????? > Hello, > > Is there a rectObj() function for the php version of mapserver ( I > couldn't find it) the one below is for the perl version. > > Thanks in advance > > G > > > my $rectangle = new mapscript::rectObj(); > $rectangle->{minx} = 0; > $rectangle->{miny} = 0; > $rectangle->{maxx} = 10; > $rectangle->{maxy} = 10; > > my $query_status = $st_poly_layer->queryByRect($map,$rectang); > > my $rectang = $sing_shpfile->{bounds}; > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From braulioen@ono.com Tue Jul 1 11:57:05 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Tue, 01 Jul 2003 12:57:05 +0200 Subject: [Mapserver-users] rectObj() function for phpmapserver????? Message-ID: <13ab4313c8c2.13c8c213ab43@ono.com> Hello, the function to create a new RectObj object in Mapscript is: $rectangle = ms_newRectObj(); Braulio. ----- Mensaje Original ----- Remitente: Gijs Epping Fecha: Martes, Julio 1, 2003 10:57 am Asunto: [Mapserver-users] rectObj() function for phpmapserver????? > Hello, > > Is there a rectObj() function for the php version of mapserver ( I > couldn't find it) the one below is for the perl version. > > Thanks in advance > > G > > > my $rectangle = new mapscript::rectObj(); > $rectangle->{minx} = 0; > $rectangle->{miny} = 0; > $rectangle->{maxx} = 10; > $rectangle->{maxy} = 10; > > my $query_status = $st_poly_layer->queryByRect($map,$rectang); > > my $rectang = $sing_shpfile->{bounds}; > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From millardymecki@sympatico.ca Tue Jul 1 13:12:12 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Tue, 1 Jul 2003 08:12:12 -0400 Subject: [Mapserver-users] Python/Mapscript Message-ID: <004301c33fca$013fadc0$8000a8c0@pauls> This is a multi-part message in MIME format. ------=_NextPart_000_0040_01C33FA8.79D406E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Does anyone know if the mapserver pre-compiled binaries work with = python/mapscript(windows), or is building mapserver a requirement?=20 thanks, Paul ------=_NextPart_000_0040_01C33FA8.79D406E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
   Does anyone know if the = mapserver=20 pre-compiled binaries work with python/mapscript(windows), or is = building=20 mapserver a requirement?
thanks,
Paul
------=_NextPart_000_0040_01C33FA8.79D406E0-- From gisdude@hotpop.com Tue Jul 1 12:48:58 2003 From: gisdude@hotpop.com (Rajkumar Singh) Date: Tue, 1 Jul 2003 08:48:58 -0300 Subject: [Mapserver-users] Maplab error Message-ID: <00ab01c33fc8$93d736f0$1bbebebe@epagy.org> This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C33FAD.9CCF4FB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Could anyone tell me what the following error mean? I received this = while trying to use the MapBrowser component of Maplab. " PHP Warning: MapServer Error in getSymbol(): (LOCAL):(17) in = c:\inetpub\wwwroot\maplab\htdocs\common\wrapper\map_session.php on line = 208 PHP Fatal error: Failed to open map file = c:/Inetpub///wwwroot/maplab///sam.map in = c:\inetpub\wwwroot\maplab\htdocs\common\wrapper\map_session.php on line = 208" Any ideas what I'm doing wrong. I'm running Windows XP pro with IIS, PHP = 4.3 and PHP_Mapscript 3.6.4. Thanks for all replies. Cheers. Raj ------=_NextPart_000_0027_01C33FAD.9CCF4FB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
Could anyone tell me what the following = error mean?=20 I received this while trying to use the MapBrowser component of=20 Maplab.
 
" PHP Warning: MapServer Error in getSymbol(): (LOCAL):(17) in=20 c:\inetpub\wwwroot\maplab\htdocs\common\wrapper\map_session.php on line = 208 PHP=20 Fatal error: Failed to open map file = c:/Inetpub///wwwroot/maplab///sam.map in=20 c:\inetpub\wwwroot\maplab\htdocs\common\wrapper\map_session.php on line=20 208"
 
Any ideas what I'm doing wrong. I'm = running Windows=20 XP pro with IIS, PHP 4.3 and PHP_Mapscript 3.6.4.
 
Thanks for all replies.
 
Cheers.
 
Raj
------=_NextPart_000_0027_01C33FAD.9CCF4FB0-- From schut@sarvision.com Tue Jul 1 14:38:27 2003 From: schut@sarvision.com (Vincent Schut) Date: Tue, 1 Jul 2003 15:38:27 +0200 Subject: [Mapserver-users] Maplab error In-Reply-To: <00ab01c33fc8$93d736f0$1bbebebe@epagy.org> References: <00ab01c33fc8$93d736f0$1bbebebe@epagy.org> Message-ID: <200307011538.27036.schut@sarvision.com> If I remember well these kind of errors usually means that there is an error in your mapfile. getSymbol is a function that is called by the mapfile parser to read something. In this case it has something to do with the word 'LOCAL' on (or around) line 17 of the map file (sam.map in this case). sorry don't know much about maplab, that probably generated that mapfile? But in mapserver terminology, this is more or less what the error means. Regards, Vincent Schut. On Tuesday 01 July 2003 13:48, Rajkumar Singh wrote: > Hi, > > Could anyone tell me what the following error mean? I received this while > trying to use the MapBrowser component of Maplab. > > " PHP Warning: MapServer Error in getSymbol(): (LOCAL):(17) in > c:\inetpub\wwwroot\maplab\htdocs\common\wrapper\map session.php on line 208 > PHP Fatal error: Failed to open map file > c:/Inetpub///wwwroot/maplab///sam.map in > c:\inetpub\wwwroot\maplab\htdocs\common\wrapper\map session.php on line > 208" > > Any ideas what I'm doing wrong. I'm running Windows XP pro with IIS, PHP > 4.3 and PHP Mapscript 3.6.4. > > Thanks for all replies. > > Cheers. > > Raj -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From thfischer@mapmedia.de Tue Jul 1 16:55:36 2003 From: thfischer@mapmedia.de (Thorsten Fischer) Date: 01 Jul 2003 17:55:36 +0200 Subject: [Mapserver-users] JavaScript vs MapScript for interfacedevelopment... In-Reply-To: References: <13858AA1A74F30419F319ACB66A9D1222BFC2E@mercator.topozone.com> Message-ID: <1057074936.319.5.camel@jeanjacques> Let's see. I will not answer to all posts seperately, but rather try to sum it all up in a big one. Please note that I did not ask to turn off your applications. More of that in the last few paragraphs. Also I did not mean to advertise that nobody should visit sites containing javascript anymore. I add this because I received a couple of outright hostile (and mostly 'anonymous'; I put that in quotes because you people should take more care of your emails' headers) emails stating that the 'stupid nonsense' i wrote would put websites out of business. -- First off I would like to ask a question. People install virus scanners on their desktop machines (virus scanners are a thing that can be argued about too, but for the sake of the following let's assume they make sense). They install them because they do not want a virus, which is code written by a completely untrusted (and untrustable) stranger, code that they cannot control, to be executed on their machine. Next thing they do is firing a web browser, go to a site and have javascript executed, which is code, written by a completely untrusted stranger. Code they cannot control and that someone says is necessary for a certain service. Code that might have changed since last night for whatever reason. Sounds weird to me. -- There was pointed out that javascript was designed to be a sandbox environment. This is not true. If you have a link to a design paper or something similar, I would like to read more about a inherent security model in javascript. But this will prove difficult, because there is none. Netscape, the inventors of JavaScript, developed a few models _afterwards_ (same origin policy, data tainting, signed script policy). Security put on top of a thing is no security. It has to be built in. I recommend reading Bruce Schneier's 'Secrets & Lies', among others, for more info on that problem. IIRC, Microsoft one day said something about 'sandbox' and javascript, but I think all of us are aware of MS's quality of security in their software implementations. By the way, contrary to what someone else said, Shockwave Flash does not require an ActiveX control. Or at least my linux version for mozilla does not need it. Oh, and it is correct that active scripting and javascript can be seen as different things; but I still have to find an IE setting that lets the user turn off only one of the two. -- I recommended asking your local cert for 'javascript'. The response was questioning that I did this myself, because a search would only yield 8 results. Please allow me to question this result in return. I go to www.cert.org, type 'javascript' in the search box and hit enter. I get 59 results. If you want I can post a screenshot somewhere. Bugtraq: 109 hits (securityfocus keeps on splitting up their lists and redesigning their publication policies, and cert.org is not exactly famous for a full disclosure policy, so the numbers possibly need to be adjusted in one direction or the other) -- Something that made me angry was the comment that 'driving a car' was a risk as well, as would be everyday life, and that life would only be enjoyable with a certain amount of risk involved. As much as I do agree with that sentence :), it does not have the slightest relation to our discussion. Apart from there being way too many car/computer comparisons on the net ;), it moves the 'opponent' in a debate (sorry, I cannot think of a better word at the moment) to a slightly silly level. But sticking to car-driving, let me point out that you have to acquire a license to be allowed to drive a car; that you need to take lessons to earn that license; that you have to follow a lot of security guidelines to be in line with your local traffic laws; and that you are in trouble explaining things to the insurance company in case something happens to you even though you should have known better in that very situation. Same goes for the people and companies who build and maintain streets and roads. There is no equivalent to this on the internet, so the car metaphor does not hold. And even if _you_ want to take a certain risk, others might not want to. See the 'choice' consensus that I offer in the last paragraph (and that I already offered in my original email). Security is a binary thing; it's either there, or it is not. Taking 'a bit of a risk' in a certain environment (a javascript mapserver application) and hoping that it won't harm me on another does not work. -- The BSI (german Department for IT Security, it defines security outlines for companies and private people and publishes them) posted the following press release on their website in September 1999: http://www.bsi.de/fachthem/sinet/java99.htm Sorry, it's in german. It says that there were numerous security problems with 'active content' in WWW sites (ActiveX, JavaScript, Java etc). They say that most problems are caused by implementation errors, and that secure implementation of active content seems to be outright impossible. They strongly recommend turning off active content. They also point out that security-aware people are consequently left out because of websites relying on javascript and so on, especially where its use is completely unnecessary. I think they make an important point here: The core problem is not that JavaScript is inherently too insecure, but that almost every browser security hole relies on it to be turned on. The press release has been updated in january 2002 with the note that all warnings are still valid. There is absolutely no indicator that the errors in implementation are not there anymore. -- I also want to point out that you assume - even though you are not explicitely stating it - that every security problem in javascript is public and can be fixed. This assumption is interesting. I would like to invite you to join us on this year's Chaos Communication Camp near Berlin (https://www.ccc.de/camp/) for the opportunity to meet people who might be able to talk to you about the more creative uses of active web browser content. The JavaScript security problems were even more grave with Netscape and IE versions up to versions 4.something, so the most notes and web pages you will find are up to, say, 1999. They are more sparse now, but they are still there. Please also note that the sheer annoyance that a JavaScript site can cause is not exactly a security hole but still a good reason not to enable it at all. I still have the possibility to open hundreds of new windows right in your face. Another problem caused is that javascript leads to developers' lazyiness. People parse form input using javascript, thinking that they have control over the submitted content that way, and then skip this important step on the server's side. But I can still type everything in my web browser myself, or connect via telnet, or whatever, and send abitrary input. Therefore advertising JavaScript as an all-purpose programming language is wrong, because it is by no means an interface that can control any input whatsoever, it's just a layer between me and the application on the webserver, a layer that I can move away at will. I admit that I am getting away from the possible harm for the user here, but I think it's an important point. -- Bottom line, again: I think my arguments are still valid. You may choose to _assume_ a lot of things and base your application development on. That is your choice. That your website needs javascript, or whatever active content you like. That is your choice. But my choice - and the choice of a lot of other people - is that javascript has to be turned off, let it be only because of the annoyance it causes. So the question is: why don't you want me to see that application? As much as I see that most places in which JavaScript is used it also is completely unnecessary, I do of course understand that our business of making maps is a highly visual one. I think I already said that. I do not ask you to optimize your sites for the users of 'links' and 'lynx', which are unix command line web browser. And I see that there is functionality that cannot be done in plain HTML, for example zoom boxes. I mentioned that too. I also know Neapoljs, for example, which is made by tydac, and I think that it is a very nice application, and I will continue to point people to it. But JavaScript should only be excuted in a trusted environment. The internet is _not_ a trusted or trustable environment. We are using free software here (MapServer), because we want to show the users and developers that they have the ability to choose. To transport that thought we have to let users make choices. This is an important one. I do not ask you to turn your sites of. I ask you to let the people choose between a javascript and a non-javascript version. If you cannot do that or do not want to do it, I ask you to tell them the reason. Just a few lines of explanation. And maybe add why you think that it's not at all harmful for them to have javascript turned on. hth, thorsten -- Links: http://www.pivx.com/larholm/unpatched/ http://www.pivx.com/larholm/unpatched/6may03notes.html (unpatched IE security holes) http://www.juengling-edv.de/meinungen/webseitengestaltung.htm (german site about web design. They say that no common store would ever put a sign at the door saying 'only for people with Armani ties' or 'only for Porsche drivers'. But still people build websites saying 'only viewable with javascript') http://www.w3.org/Security/Faq/wwwsf2.html#CLT-Q8 (The w3c recommending not to use javascript. The FAQ is not exactly up to date) http://www.w3.org/TR/WAI-WEBCONTENT/ http://www.w3.org/TR/UAAG10/ (accessability and usability guidelines) etc From heihachi.cv90g@nctu.edu.tw Tue Jul 1 15:06:09 2003 From: heihachi.cv90g@nctu.edu.tw (¦¿©v®i) Date: Tue, 1 Jul 2003 22:06:09 +0800 Subject: [Mapserver-users] how many users do mapserver supports? Message-ID: <002101c33fd9$ecff6700$3910718c@sbvr.com> This is a multi-part message in MIME format. ------=_NextPart_000_001D_01C3401C.FA559300 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Dear all Did u ever test the online GIS application based on MapServer. A common pc as server,how many users did MapSerevr supports?? Regards!!! Kent ------=_NextPart_000_001D_01C3401C.FA559300 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Dear all
 
Did u ever test the online GIS application based on=20 MapServer.
 
A common pc as server,how many users did MapSerevr=20 supports??
 
Regards!!!
 
Kent 
------=_NextPart_000_001D_01C3401C.FA559300-- From sgillies@frii.com Tue Jul 1 15:24:54 2003 From: sgillies@frii.com (Sean Gillies) Date: Tue, 1 Jul 2003 08:24:54 -0600 Subject: [Mapserver-users] Python/Mapscript In-Reply-To: <004301c33fca$013fadc0$8000a8c0@pauls> Message-ID: Paul, There are no official Python MapScript binaries. If I was a regular Win32 user I would provide some. But alas. Would anyone else like to step up, zip up their mapscript.py and mapscript.pyd and share them? Michael? cheers, Sean On Tuesday, July 1, 2003, at 06:12 AM, Paul Dymecki wrote: > Hi, >    Does anyone know if the mapserver pre-compiled binaries work with > python/mapscript(windows), or is building mapserver a requirement? > thanks, > Paul > -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From steve.lime@dnr.state.mn.us Tue Jul 1 15:48:59 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Tue, 01 Jul 2003 09:48:59 -0500 Subject: [Mapserver-users] Fwd: [wms-dev] quickWMS released as opensource Message-ID: This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=_510F6298.40214846 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry to cross-post but this seems like a pretty cool tool. Steve --=_510F6298.40214846 Content-Type: message/rfc822 Return-path: Received: from mail.state.mn.us (state.mn.us [156.99.125.109]) by co5.dnr.state.mn.us; Tue, 01 Jul 2003 09:25:14 -0500 Return-Path: Received: from that1.intl-interfaces.net (that1.intl-interfaces.net [64.239.122.14]) by mail.state.mn.us with ESMTP for steve.lime@dnr.state.mn.us; Tue, 1 Jul 2003 09:25:08 -0500 Received: by that1.intl-interfaces.net (Postfix, from userid 510) id 1F395D72022; Tue, 1 Jul 2003 10:25:05 -0400 (EDT) Received: from that1.intl-interfaces.net (localhost.localdomain [127.0.0.1]) by that1.intl-interfaces.net (Postfix) with ESMTP id 92D44D7201D; Tue, 1 Jul 2003 10:25:03 -0400 (EDT) X-Original-To: wms-dev@mail.digitalearth.org Delivered-To: wms-dev@mail.digitalearth.org Received: by that1.intl-interfaces.net (Postfix, from userid 510) id C5A66D72019; Tue, 1 Jul 2003 10:24:10 -0400 (EDT) Received: from inovagis.org (mail001.readyhosting.com [63.119.175.14]) by that1.intl-interfaces.net (Postfix) with ESMTP id 33480D72018 for ; Tue, 1 Jul 2003 10:24:10 -0400 (EDT) Received: from giserver.inovagis.org [192.106.252.93] by inovagis.org with ESMTP (SMTPD32-6.06) id A7DA21D010E; Tue, 01 Jul 2003 09:16:58 -0500 Message-Id: <5.1.0.14.0.20030701163107.028151d0@mail.inovagis.org> X-Sender: pedro%inovagis.org@inovagis.org@mail.inovagis.org X-Mailer: QUALCOMM Windows Eudora Version 5.1 To: wms-dev@mail.digitalearth.org From: Pedro Pereira Goncalves Subject: [wms-dev] quickWMS released as opensource Sender: wms-dev-admin@mail.digitalearth.org Errors-To: wms-dev-admin@mail.digitalearth.org X-BeenThere: wms-dev@mail.digitalearth.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: Web Map Server Developers/Implementors List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 01 Jul 2003 16:31:15 +0200 X-Spam-Status: No, hits=-0.6 required=5.0 tests=KNOWN_MAILING_LIST,SMTPD_IN_RCVD,SPAM_PHRASE_00_01 version=2.41 X-Spam-Level: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: 7bit Hi all the quickWMS is a set of JavaScript classes for creating Web Map clients and interfacing WMS servers according to OpenGIS Web Mapping Specification (versions 0.7 to 1.1). The goal of this project is to enable the fast creation of web mapping clients using javascript. The target browsers are Internet Explorer (version 5.5 and up) and Netscape (7.00 and up) both for Windows, Mac and Linux. I've just set up a web with the complete class definition and documentation available at Development site at http://giserver.esrin.esa.int/quickwms/ (sometimes offline) the stable version are posted on http://www.inovagis.org/quickwms/ all the best, pedro _______________________________________________ wms-dev mailing list wms-dev@mail.digitalearth.org http://mail.digitalearth.org/mailman/listinfo/wms-dev --=_510F6298.40214846-- From rasp@tzi.de Tue Jul 1 15:53:18 2003 From: rasp@tzi.de (Rainer Spittel) Date: Tue, 01 Jul 2003 16:53:18 +0200 Subject: [Mapserver-users] getShare raises assertion error on PostGIS Message-ID: <3F01A05E.6060301@tzi.de> Hi, I am using Apache, the MapServer V3.6 and PostGIS as the geodatabase. Both is running on Linux Suse 8.0. I have imported my shapefiles into the PostGIS database and now I get the following error message when I try to query an item: [...] Dump query Query layer 0: built-up-area Query layer built-up-area: skip this layer Query layer 1: vegetation-zone field opened Inserting results 0 ShapeIndex:99923 TileIndex: -1 ClassIndex:0 Fatal error: Assertion failed, Could not set shape values: 0, 0 in /usr/local/apache/htdocs/mapserver/test_map/htdocs/mapserv.php3 on line 737 The php-document look like this: [...] printf("Inserting results %s
\n",$iRes); $oRes = $oLayer->getResult($iRes); printf("ShapeIndex:%s
",$oRes->shapeindex); printf("TileIndex: %s
",$oRes->tileindex); printf("ClassIndex:%s
",$oRes->classindex); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); printf("\n"); [...] This error occures when the "getShape" methode will be processed. When I look into the postgis database, I am not able to find an object with this id. A dump of the table "vegetation-zone" looks like: gid kn gn area the_geom 0 04000000 Bremen 578682.171 SRID=-1;MULTIPOLYGON(((3476450.95, [...]) 1 04000000 Bremen 77603646.804 SRID=-1;MULTIPOLYGON(((3475408.58, [...]) Is the internal SRID wrong or what am I doing wrong? R. Spittel --------------------------------------------------------------- From bartvde@xs4all.nl Tue Jul 1 16:23:03 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 01 Jul 2003 17:23:03 +0200 Subject: [mapserver-users] SWF output demo site? Message-ID: Hi list, does anybody know about a Flash demo site in which mapserver with SWF output is used? Thanks, Bart From morissette@dmsolutions.ca Tue Jul 1 16:33:27 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 11:33:27 -0400 Subject: [Mapserver-users] getShare raises assertion error on PostGIS References: <3F01A05E.6060301@tzi.de> Message-ID: <3F01A9C7.3B1975D8@dmsolutions.ca> Rainer Spittel wrote: > > Fatal error: Assertion failed, Could not set shape values: 0, 0 in > /usr/local/apache/htdocs/mapserver/test_map/htdocs/mapserv.php3 on line 737 > This is fixed in version 4.0 (CVS). We are unlikely to release another 3.6.x release since we plan on releasing 4.0 in a few weeks, so you might have to consider upgrading. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From flavio@tydac.ch Tue Jul 1 16:48:45 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Tue, 01 Jul 2003 17:48:45 +0200 Subject: [Mapserver-users] JavaScript vs MapScript for interfacedevelopment... In-Reply-To: <1057074936.319.5.camel@jeanjacques> References: <13858AA1A74F30419F319ACB66A9D1222BFC2E@mercator.topozone.com> <1057074936.319.5.camel@jeanjacques> Message-ID: hi thorsten this was a really really long answer. however, as ed and I pointed out, there is nowhere a decent reference to any javascript holes. and google is normally pretty good pointing that out: all I get is from times before computer was invented or so ... and your mail, even being pretty extensive, it does not say anything again, where are the holes and dangers, tell us ????????? ... so, to shortly sum, there are none: - I do not know of any organization in switzerland (normally extremely picky about security) that turns it off ... - I do not know about any site without it. even yours, mapmedia.de has some ... - If one visits decent professional sites, they are nevere anonymous, so how could you damage anybody - they'd be up your neck immediately ... - with javascript you can do fancy things; and I agree pretty nasty ones too if you visit certain sites ... - in 5-6 years on surfing I never had and never heard of a problem with javascript by anybody ever - however of a lot of other "accidents" (as well with cars ... and even if it bugs you I stay with that, even if there is no risk with js, all the security issues have to do with risk - and if you use something there is risk along with it ... it's a question how far you go to prevent it ... and turning off js is to me like wearing a helmet when walking around in the apartment ...) so, turn it on, relay and enjoy - there are many sites which make great use of it ... flavio From morissette@dmsolutions.ca Tue Jul 1 16:56:24 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 11:56:24 -0400 Subject: [mapserver-users] SWF output demo site? References: Message-ID: <3F01AF28.2DB69CA8@dmsolutions.ca> Bart van den Eijnden wrote: > > does anybody know about a Flash demo site in which mapserver with SWF > output is used? > There's one at http://www.mapsherpa.com/make_a_map/ ... there are both HTML versions and Flash versions of the same app. A few quick notes: - The Flash version requires the Flash 6 plugin, you'll get an empty window if you use Flash 5. - The HTML version has a few glitches when you try to place points on the map... should be fixed soon. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bartvde@xs4all.nl Tue Jul 1 17:00:43 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 01 Jul 2003 18:00:43 +0200 Subject: [mapserver-users] SWF output demo site? In-Reply-To: <3F01AF28.2DB69CA8@dmsolutions.ca> References: <3F01AF28.2DB69CA8@dmsolutions.ca> Message-ID: Hi Daniel, I thought with SWF less frequent client-server contact is needed. So e.g. zoom in does not require a new request. But after zooming in it seems like a new map is retrieved from the server. Or is the client busy with zooming in on the SWF image when it says retrieving image? How does this work, is my statement only valid for vector SWF layers? Thanks, Bart On Tue, 01 Jul 2003 11:56:24 -0400, Daniel Morissette wrote: > Bart van den Eijnden wrote: >> >> does anybody know about a Flash demo site in which mapserver with SWF >> output is used? >> > > There's one at http://www.mapsherpa.com/make_a_map/ ... there are both > HTML versions and Flash versions of the same app. > > A few quick notes: > - The Flash version requires the Flash 6 plugin, you'll get an empty > window if you use Flash 5. > - The HTML version has a few glitches when you try to place points on > the map... should be fixed soon. > > Daniel -- From spencer@dmsolutions.ca Tue Jul 1 17:02:42 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 01 Jul 2003 12:02:42 -0400 Subject: [mapserver-users] SWF output demo site? In-Reply-To: References: Message-ID: <3F01B0A2.4080203@magma.ca> http://www.dmsolutions.ca/techserv/makeapmap.html Cheers, Paul Bart van den Eijnden wrote: > Hi list, > > does anybody know about a Flash demo site in which mapserver with SWF > output is used? > > Thanks, > Bart > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From morissette@dmsolutions.ca Tue Jul 1 17:14:10 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 12:14:10 -0400 Subject: [mapserver-users] SWF output demo site? References: <3F01AF28.2DB69CA8@dmsolutions.ca> Message-ID: <3F01B352.334D8E75@dmsolutions.ca> Bart van den Eijnden wrote: > > I thought with SWF less frequent client-server contact is needed. So e.g. > zoom in does not require a new request. But after zooming in it seems like > a new map is retrieved from the server. Or is the client busy with zooming > in on the SWF image when it says retrieving image? How does this work, is > my statement only valid for vector SWF layers? > It depends on how the application is built. You can control via the mapfile which layers are output as rasters and which ones are outpout as vectors to the Flash client. This specific application passes all layers as rasters, so the client has to request a new map from the server everytime as you noticed. It would be possible to make all layers vectors and then the client could be instructed to zoom into the vector data without going back to the server. However this could involve huge amounts of data to transfer and you would likely have to decide on an arbitrary threshold to use in generalizing the vectors that you pass to the client anyway. The best compromise is to use raster mode for backdrop layers, and vector mode for layers of points of interest for instance... so you get the interactivity of Flash on your vector features, and don't have to transfer megabytes of vectors to the client... something that the Flash client could probably not handle anyway. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bartvde@xs4all.nl Tue Jul 1 17:19:55 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 01 Jul 2003 18:19:55 +0200 Subject: [mapserver-users] SWF output demo site? In-Reply-To: <3F01B352.334D8E75@dmsolutions.ca> References: <3F01AF28.2DB69CA8@dmsolutions.ca> <3F01B352.334D8E75@dmsolutions.ca> Message-ID: Hi Daniel, I remain with one basic question after your clear response. What is the advantage of using raster SWF layers above normale GIF or JPG images? Thanks, Bart On Tue, 01 Jul 2003 12:14:10 -0400, Daniel Morissette wrote: > Bart van den Eijnden wrote: >> >> I thought with SWF less frequent client-server contact is needed. So >> e.g. >> zoom in does not require a new request. But after zooming in it seems >> like >> a new map is retrieved from the server. Or is the client busy with >> zooming >> in on the SWF image when it says retrieving image? How does this work, >> is >> my statement only valid for vector SWF layers? >> > > > It depends on how the application is built. You can control via the > mapfile which layers are output as rasters and which ones are outpout as > vectors to the Flash client. > > This specific application passes all layers as rasters, so the client > has to request a new map from the server everytime as you noticed. > > It would be possible to make all layers vectors and then the client > could be instructed to zoom into the vector data without going back to > the server. However this could involve huge amounts of data to transfer > and you would likely have to decide on an arbitrary threshold to use in > generalizing the vectors that you pass to the client anyway. > > The best compromise is to use raster mode for backdrop layers, and > vector mode for layers of points of interest for instance... so you get > the interactivity of Flash on your vector features, and don't have to > transfer megabytes of vectors to the client... something that the Flash > client could probably not handle anyway. > > Daniel -- From morissette@dmsolutions.ca Tue Jul 1 17:26:55 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 12:26:55 -0400 Subject: [mapserver-users] SWF output demo site? References: <3F01AF28.2DB69CA8@dmsolutions.ca> <3F01B352.334D8E75@dmsolutions.ca> Message-ID: <3F01B64F.7DE8880C@dmsolutions.ca> Bart van den Eijnden wrote: > > I remain with one basic question after your clear response. > > What is the advantage of using raster SWF layers above normale GIF or JPG > images? > I am not the SWF expert (Assefa is) so hopefully I won't be writing something stupid here... If I remember correctly, you can embed GIF/JPG images inside a clip as you create the client app in the Flash IDE, but you cannot load a GIF/JPG image via a URL using Action Script. That's why the raster layer has to be embedded in a small clip by MapServer... just so that you can download the layer on the fly from your Flash app. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From rgrant@nrcan.gc.ca Tue Jul 1 18:06:00 2003 From: rgrant@nrcan.gc.ca (Grant, Ryan) Date: Tue, 1 Jul 2003 13:06:00 -0400 Subject: [mapserver-users] SWF output demo site? Message-ID: <8AE17DD6AA4FD51191CD0002A551168101E66AD0@s5-van1-r1.ess.nrcan.gc.ca> As of Flash v6, you can dynamically load non-interlaced jpg's using ActionScript. In my testing, if I was only using raster layers I would stick with straight jpg's, as they tended to be slightly smaller than the raster swf's (OUTPUT_MOVIE=SINGLE). However, if you use the OUTPUT_MOVIE=MULTIPLE, you can create an application that can turn layers on and off without going back to the server. Plus, the vectors look a lot better, even at FULL_RESOLUTION=FALSE. And, if you set FULL_RESOLUTION=TRUE, it is possible to build an application that can zoom vector layers without going back to the server, but I haven't tested this yet.. Cheers, Ryan -----Original Message----- From: Daniel Morissette [mailto:morissette@dmsolutions.ca] Sent: Tuesday, July 01, 2003 9:27 AM To: bartvde@xs4all.nl Cc: mapserver-users@lists.gis.umn.edu Subject: Re: [mapserver-users] SWF output demo site? Bart van den Eijnden wrote: > > I remain with one basic question after your clear response. > > What is the advantage of using raster SWF layers above normale GIF or JPG > images? > I am not the SWF expert (Assefa is) so hopefully I won't be writing something stupid here... If I remember correctly, you can embed GIF/JPG images inside a clip as you create the client app in the Flash IDE, but you cannot load a GIF/JPG image via a URL using Action Script. That's why the raster layer has to be embedded in a small clip by MapServer... just so that you can download the layer on the fly from your Flash app. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Tue Jul 1 18:23:29 2003 From: lfilak@medinaco.org (Lowell.Filak) Date: Tue, 1 Jul 2003 13:23:29 -0400 (EDT) Subject: [Mapserver-users] Mapscript: using URLs etc... In-Reply-To: <1056727791.3efc62efb4cfb@sms.ed.ac.uk> Message-ID: Sorry, the PerlMapScript examples in the wiki ( http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScript ) and in the documentation ( http://mapserver.gis.umn.edu/doc36/perlmapscript-reference.html ) and any that may exist in the user list ( http://mapserver.gis.umn.edu/cgi-bin/wilma_glimpse/mapserver-users?query=perlmapscript%3Bexample&Search=Search&restricttofiles=on&filelist=0306&filelist=0305&filelist=0304&filelist=0303&filelist=0302&filelist=0301&errors=0&maxfiles=50&maxlines=10&.cgifields=lineonly&.cgifields=restricttofiles&.cgifields=filelist&.cgifields=partial&.cgifields=case ) are all that exist. However, the documentation has been changed to allow example code to be added directly to the documentation as users have a chance. Lowell On Fri, 27 Jun 2003, AMC Story wrote: > Hi everyone, > > Thanks to all those who've given me the benefit of their experience re. > mapscript vs javascript. I've certainly got some things to think about! > > I'm still trying to get my head around how a mapscript application runs, so > firstly, are there any more examples of perl mapscript applications? The main > mapserver site has pretty good documentation for php mapscript, but as I don't > know php, it's not as easy as it might be for me to translate the examples into > perl. > > Also, more specific to my application, I wanted to ask if creating a MapServer > application using MapScript will still allow me to utilise an opening html > page, on which are hyperlinks to various geographical features (as well as a > link to a map which shows all of these features on a world map). At the > moment, the individual hyperlinks are generated dynamically according to the > current data, and have been set up so that the full url provides the detail of > the extent of the map to show each relevant feature and so on. If I'm not > using a template file, but instead using a script making MapScript calls, is > this approach still going to work? > > Any thoughts, or further explanations/examples of how to write an application > using perl MapScript would be great. > > Many thanks in advance, > Ali > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From nuno.cabrita@elementodigital.pt Tue Jul 1 19:09:17 2003 From: nuno.cabrita@elementodigital.pt (Your Name) Date: Tue, 01 Jul 2003 14:09:17 -0400 Subject: [Mapserver-users] Error in getSymbolByName Message-ID: Hello all. I am trying to set diferent symbols to point shapes in a layer, but after adding 50 symbols the function $map->getSymbolByName($filename) returns -1 and the symbol does not apear in the map. Here is a piece of my code: $layer = ms_newLayerObj($Map); $layer->set("name", 'graph'); $layer->set("type", MS_LAYER_POINT); $layer->set("status", 1); $shape_file = ms_newShapefileObj($Map->shapepath.'/graph', MS_SHP_POINT); $dbfFile = dbase_create($Map->shapepath."/graph.dbf", array(array("IGDS_CLASS", "C", 150, 0), array("VALOR", "C", 150, 0))); $idx_class = 0; while ($j<52) { $class = ms_newClassObj($layer); $class->set("name", "class_name"); $class->setexpression("'".$idx_class."'"); $class->set("symbolname", $path.$idx_class.".png"); $pt = ms_newPointObj(); $pt->setXY($long + 50, $lat+120); $line = ms_newLineObj(); $line->add($pt); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); $shape_file->addShape($shape); dbase_add_record($dbfFile, array($idx_class, 0)); $idx_class++; } $shape_file->free(); dbase_close($dbfFile); $layer->set('classitem', 'IGDS_CLASS'); $layer->set('data', 'graph'); Is this a bug of mapserver? Am I doing something wrong? Is there a better way to do this? Can anyone please help me? From mapserver@geochem.de Tue Jul 1 19:59:59 2003 From: mapserver@geochem.de (Nicol Hermann) Date: 01 Jul 2003 20:59:59 +0200 Subject: [Mapserver-users] getShare raises assertion error on PostGIS In-Reply-To: <3F01A9C7.3B1975D8@dmsolutions.ca> References: <3F01A05E.6060301@tzi.de> <3F01A9C7.3B1975D8@dmsolutions.ca> Message-ID: <1057085999.1004.21.camel@katrin> Hi Daniel, thank you for the fix in the CVS version. The error message disappears when i use the latest cvs version but i still got no data back.The result of the var_dump statement is NULL. How do i manage it to get the "real" data back from the postgres database. $shape = $layer->getShape($result->tileindex, $result->shapeindex); $value = $shape ->value; var_dump ($value); Thanks a lot Nicol Am Die, 2003-07-01 um 17.33 schrieb Daniel Morissette: > Rainer Spittel wrote: > > > > Fatal error: Assertion failed, Could not set shape values: 0, 0 in > > /usr/local/apache/htdocs/mapserver/test_map/htdocs/mapserv.php3 on line 737 > > > > This is fixed in version 4.0 (CVS). We are unlikely to release another > 3.6.x release since we plan on releasing 4.0 in a few weeks, so you > might have to consider upgrading. -- Nicol Hermann From dan.arnold@noaa.gov Tue Jul 1 20:02:01 2003 From: dan.arnold@noaa.gov (Dan Arnold) Date: Tue, 1 Jul 2003 14:02:01 -0500 Subject: [Mapserver-users] help with Projections Message-ID: <025801c34003$40d9a1f0$4b6de3cc@ArnoldCR20407> This is a multi-part message in MIME format. ------=_NextPart_000_0259_01C33FD9.580399F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello- I am looking for some examples on how to use "projections" with Mapserver. I am by no means a GIS guru, nor do I fully understand "projections", I just know that my maps that I am creating ( http://www.crh.noaa.gov/wwamaps/ ) are being compressed and have a "squished" looked to them, and I was told I need to "project" my data differently. So I'm hoping to find some pretty simple examples I can look at and learn from. I am looking to use "Ellipsoidal Mercator" as a projection, if that helps any. If I need to provide more data, please let me know and I can. I just don't know where to start with this, so any help is greatly appreciated. Thanks in advance! -- Dan Arnold Webmaster National Weather Service Central Region Headquarters dan.arnold@noaa.gov 816.891.7734 x486 ------=_NextPart_000_0259_01C33FD9.580399F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hello-
 
I am looking for = some examples=20 on how to use "projections" with Mapserver. I am by no means a GIS guru, = nor do=20 I fully understand "projections", I just know that my = maps that I am=20 creating ( http://www.crh.noaa.gov/wwamaps= / ) are=20 being compressed and have a "squished" looked to them, and I was = told I=20 need to "project" my data differently. So I'm hoping to = find some=20 pretty simple examples I can look at and learn from.
 
I am looking to use = "Ellipsoidal Mercator" as a projection, if that helps=20 any.
 
If I need to = provide more data,=20 please let me know and I can. I just don't know where to start with = this, so any=20 help is greatly appreciated.
 
Thanks in=20 advance!

--
Dan Arnold
Webmaster
National = Weather=20 Service
Central Region Headquarters
dan.arnold@noaa.gov
816.891.77= 34=20 x486

 
------=_NextPart_000_0259_01C33FD9.580399F0-- From lfilak@medinaco.org Tue Jul 1 20:09:36 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Tue, 01 Jul 2003 15:09:36 -0400 Subject: [Mapserver-users] perl mapscript error Message-ID: <200307011909.h61J9WN03034@yogi.medinaco.net> Possibly an issue of library confusion? Lowell http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00385.html From bartvde@xs4all.nl Tue Jul 1 20:36:20 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 01 Jul 2003 21:36:20 +0200 Subject: [mapserver-users] Oracle Spatial error info gone in 4.0? Message-ID: Hi, what has happened to the Oracle Spatial error messages in 4.0 beta? In old versions when you supplied an invalid column in the DATA statement, you got an exception in your browser containing the Oracle SQL statement in the ORA error, which is quite useful. Now I only get the error message: msDrawMap(): Image handling error. Failed to draw layer named 'kwadranten' In the "old" documentation there is also something about this (see http://mapserver.gis.umn.edu/doc36/mapfile-reference.html): For Oracle, use "shape FROM table" or "shape FROM (SELECT statement)" or even more complex Oracle compliant queries! Note that there are important performance impacts when using spatial subqueries however. Try using MapServer's FILTER whenever possible instead. You can also see the SQL submitted by forcing an error, for instance by submitting a DATA parameter you know won't work, using for example a bad column name. Best regards, Bart From morissette@dmsolutions.ca Tue Jul 1 20:49:17 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 15:49:17 -0400 Subject: [Mapserver-users] getShare raises assertion error on PostGIS References: <3F01A05E.6060301@tzi.de> <3F01A9C7.3B1975D8@dmsolutions.ca> <1057085999.1004.21.camel@katrin> Message-ID: <3F01E5BD.12493FC@dmsolutions.ca> Nicol Hermann wrote: > > thank you for the fix in the CVS version. > The error message disappears when i use the latest cvs version but i > still got no data back.The result of the var_dump statement is NULL. > How do i manage it to get the "real" data back from the postgres > database. > > $shape = $layer->getShape($result->tileindex, $result->shapeindex); > $value = $shape ->value; > var_dump ($value); > You are trying to access the field values, correct? The PHP MapScript docs explains how to get to them: --------8<-------- int numvalues (read-only) array values (read-only) The values array is an associative array with the attribute values for this shape. It is set only on shapes obtained from layer->getShape(). The key to the values in the array is the attribute name, e.g. $population = $shape->values["Population"]; -------->8-------- Note that you also have to make sure that you select the columns you're interested in in your PostGIS select statement. I'm not sure of the details to do this, someone more experienced with PostGIS might be able to help. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette@dmsolutions.ca Tue Jul 1 20:56:00 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 15:56:00 -0400 Subject: [Mapserver-users] Displaying Raster under PHP MapScript References: <1056933861.2992.20.camel@localhost> <3F002900.7090708@sopac.org> Message-ID: <3F01E750.542762AE@dmsolutions.ca> > Franck Martin wrote: > > I found the problem... > > The path to the file was invalid, but MS was passing the error without > any report even with debug enabled... > > I think there should be at least a message in debug mode when a file > is not found... > By default MapServer silently ignores missing data files. However you can configure/compile with --disable-ignore-missing-data and then you'll get explicit errors. Note that changing this can cause annoying side-effects because I think it will produce errors if a given file is missing for a single tile. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette@dmsolutions.ca Tue Jul 1 21:01:19 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Jul 2003 16:01:19 -0400 Subject: [Mapserver-users] Displaying Raster under PHP MapScript References: <1056933861.2992.20.camel@localhost> <3F002900.7090708@sopac.org> <3F01E750.542762AE@dmsolutions.ca> Message-ID: <3F01E88F.AA61126A@dmsolutions.ca> Daniel Morissette wrote: > > Note that changing this can cause annoying side-effects because I think > it will produce errors if a given file is missing for a single tile. > Ooppps... part of what I wanted to write got lost... the annoying side effects that I refer to would happen only if you use tiled datasets and the data files for some of the layers are not present in all tiles. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From noti@ciaoweb.it Tue Jul 1 21:37:00 2003 From: noti@ciaoweb.it (Valerio Noti) Date: Tue, 1 Jul 2003 22:37:00 +0200 Subject: [Mapserver-users] legend templates Message-ID: <00bd01c34010$a9496600$e8087b3e@Valerio> This is a multi-part message in MIME format. ------=_NextPart_000_00B8_01C34021.49543660 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, is it possible to use in main application window two html legend = templates, one for layers and one for classes. I'd like to separate the two legend types in = order to allow the user to choose only one to display? Thanks in advance Valerio ------=_NextPart_000_00B8_01C34021.49543660 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
is it possible to use in main = application window=20 two html legend templates, one for
layers and one for classes. I'd like to = separate=20 the two legend types in order
to allow the user to choose only one to = display?
 
Thanks in advance
 
Valerio
------=_NextPart_000_00B8_01C34021.49543660-- From bartvde@xs4all.nl Tue Jul 1 21:32:37 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 01 Jul 2003 22:32:37 +0200 Subject: [mapserver-users] SWF output demo site? In-Reply-To: <3F01B64F.7DE8880C@dmsolutions.ca> References: <3F01AF28.2DB69CA8@dmsolutions.ca> <3F01B352.334D8E75@dmsolutions.ca> <3F01B64F.7DE8880C@dmsolutions.ca> Message-ID: Hi Daniel, list, if you look at this site (it's in Dutch unfortunately) they have a raster background layer which is zoomed in at the flash client side (no server contact). http://www.friesland.nl/risicokaart2/risicokaart/risicokaart.htm -Pick something from the combo box in top of the page (like the second one, "Ameland") -Press the (+) button several times to zoom in until you get the raster background, and pan a little bit towards the urban area in the west. It is just a high-quality raster which is being zoomed in on client-side, don't you think? It performs pretty well, but I heard they use tiled swf files which are ready on the server-side. Is a thing like this possible with mapserver? For instance can you prepare tiles in SWF which are served by mapserver? Or could it be created on the fly fast enough? Could this be a useful enhancement, or is it more a GDAL issue? Bart On Tue, 01 Jul 2003 12:26:55 -0400, Daniel Morissette wrote: > Bart van den Eijnden wrote: >> >> I remain with one basic question after your clear response. >> >> What is the advantage of using raster SWF layers above normale GIF or >> JPG >> images? >> > > I am not the SWF expert (Assefa is) so hopefully I won't be writing > something stupid here... > > If I remember correctly, you can embed GIF/JPG images inside a clip as > you create the client app in the Flash IDE, but you cannot load a > GIF/JPG image via a URL using Action Script. That's why the raster > layer has to be embedded in a small clip by MapServer... just so that > you can download the layer on the fly from your Flash app. > > Daniel -- From bart@atsence.nl Tue Jul 1 21:40:41 2003 From: bart@atsence.nl (Bart van Heijningen) Date: Tue, 1 Jul 2003 22:40:41 +0200 Subject: [Mapserver-users] PhpMapscript 3.7 set color and symbol Message-ID: <000001c34011$0ca816b0$0700a8c0@ATSENCEDOMEIN> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C34021.D030E6B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, Does anyone have the equivalent for mapscript 3.7 on setting: If anyone has some more examples available it would be highly appreciated. 1. the symbol for a classitem? 2. the colour of a classitem? I keep getting the following error on both, Fatal error: Call to a member function on a non-object in Grrrr!! $newClass->set(symbol,0); $newClass->set(size,15); $newClass->set(color,$map->addColor(255, 0, 0)); TIA Regards, Bart van Heijningen ------=_NextPart_000_0001_01C34021.D030E6B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all,

 

Does anyone have  the equivalent for mapscript = 3.7 on setting:

If anyone has some more examples available it would = be highly appreciated.

 

 

1.  the symbol for a = classitem?

 

2. the colour of a classitem?

 

 

I keep getting the following error on = both,

 

Fatal = error: Call to a member function on a non-object in

 

Grrrr!!

 

$newClass->set(symbol,0);

$newClass->set(size,15); 

$newClass->set(color,$map->addColor(255, 0, = 0));

 

TIA

Regards,

 

Bart van Heijningen

 

------=_NextPart_000_0001_01C34021.D030E6B0-- From gis@farmvilleva.com Tue Jul 1 21:44:56 2003 From: gis@farmvilleva.com (John M. Duggan, LSIT) Date: Tue, 1 Jul 2003 16:44:56 -0400 Subject: [Mapserver-users] image example Message-ID: <013d01c34011$a1ae4400$1c00000a@JMDSurvey> This is a multi-part message in MIME format. ------=_NextPart_000_013A_01C33FF0.1A6EB630 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Can somebody give me an example of how to use an Image symbol in the map = file for a point layer. thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads ------=_NextPart_000_013A_01C33FF0.1A6EB630 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Can somebody give me an example of how = to use an=20 Image symbol in the map file for a point layer.
thanks,
John
 
John M. Duggan LSIT
gis@farmvilleva.com
http://www.farmvilleva.com
(43= 4)=20 392-3333
 
"......for the whole universe is in Him = and He=20 dwells
within our=20 heart."
          &n= bsp;           &nb= sp;  =20 -The Upanishads
------=_NextPart_000_013A_01C33FF0.1A6EB630-- From hunt@zedxinc.com Tue Jul 1 22:11:56 2003 From: hunt@zedxinc.com (Aaron D. Hunt) Date: Tue, 1 Jul 2003 17:11:56 -0400 Subject: [Mapserver-users] perl mapscript error References: <200307012008.h61K8VN05572@yogi.medinaco.net> Message-ID: <013701c34015$6770c340$1805000a@helicity> Is there something I am missind in this confg. to use local lib installs? ./configure --without-tiff --with-proj=/usr/home/mapserver/proj-4.4.7/ --wit h-gdal=/usr/home/mapserver/gdal-cvs-030626/bin/gdal-config --with-ogr=/usr/h ome/mapserver/gdal-cvs-030626 --with-jpeg --with-wmsclient --with-freetype=/ usr/home/mapserver/freetype-2.1.4 --with-gd=/usr/home/mapserver/gd-2.0.15 I am directing mapserver to use local install versions of libs, but it seems to be picking its own to use. Is there a option to force the use of local libs When I do the ldd mapserv I get libgd.so.2 => not found libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40029000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40048000) libpng.so.2 => /usr/lib/libpng.so.2 (0x40087000) libz.so.1 => /usr/lib/libz.so.1 (0x400aa000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x400b8000) libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x400e9000) libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x40276000) libssl.so.1 => /usr/lib/libssl.so.1 (0x4029b000) libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x402c8000) libdl.so.2 => /lib/libdl.so.2 (0x40385000) libm.so.6 => /lib/libm.so.6 (0x4038a000) libc.so.6 => /lib/libc.so.6 (0x403ac000) libungif.so.4 => /usr/lib/libungif.so.4 (0x404e2000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x404ea000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4052d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40570000) ----- Original Message ----- From: "Lowell Filak" To: "Aaron D. Hunt" ; "Lowell Filak" Sent: Tuesday, July 01, 2003 4:08 PM Subject: Re: [Mapserver-users] perl mapscript error > Check out > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptDebugging > and in particular the sections provided by Frank W. & Daniel M. > I think the important option to start with here is "ldd mapserv" to see > what the compilation is trying to use. > Lowell > > The following message was sent by "Aaron D. Hunt" on > Tue, 1 Jul 2003 15:13:56 -0400. > > > I am using a local install of all the libraries. Is there a way to tell > > which one it is trying to use. > > ----- Original Message ----- > > From: "Lowell Filak" > > To: ; > > Sent: Tuesday, July 01, 2003 3:09 PM > > Subject: Re: [Mapserver-users] perl mapscript error > > > > > > > Possibly an issue of library confusion? > > > Lowell > > > > > > > > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00385.html From steve.lime@dnr.state.mn.us Tue Jul 1 22:37:21 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Tue, 01 Jul 2003 16:37:21 -0500 Subject: [Mapserver-users] image example Message-ID: The demo application does that. The highway shields are all just PNG/GIF images. Steve >>> "John M. Duggan, LSIT" 07/01/03 03:44PM >>> Can somebody give me an example of how to use an Image symbol in the map file for a point layer. thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads From vwaldoguy@cox.net Tue Jul 1 23:31:52 2003 From: vwaldoguy@cox.net (Van DeWald) Date: Tue, 1 Jul 2003 17:31:52 -0500 Subject: [Mapserver-users] Projecting a shapefile Message-ID: <000e01c34020$91f0e2c0$6601a8c0@D3ZXLS11> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C33FF6.A8E41350 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello,=20 Is there a way to project a shape file with mapserver, to the Albers = Equal Area projection for example, if the PROJ libraries are not = installed? =20 Here's what is supported on the version of mapserver that I have access = to: Regards, Van ------=_NextPart_000_000B_01C33FF6.A8E41350 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
Is there a way to project a shape file = with=20 mapserver, to the Albers Equal Area projection for example, if the PROJ=20 libraries are not installed? 
 
Here's what is supported on the version = of=20 mapserver that I have access to:
 
<!-- MapServer version 3.6.5 = OUTPUT=3DPNG=20 OUTPUT=3DJPEG OUTPUT=3DWBMP SUPPORTS=3DTTF INPUT=3DTIFF INPUT=3DEPPL7 = INPUT=3DJPEG=20 INPUT=3DSHAPEFILE -->
 
Regards,
Van
------=_NextPart_000_000B_01C33FF6.A8E41350-- From bwragg@tpg.com.au Tue Jul 1 23:46:12 2003 From: bwragg@tpg.com.au (Benjamin Wragg) Date: Wed, 2 Jul 2003 08:16:12 +0930 Subject: [Mapserver-users] FW: [postgis-users] Postgis Transform Problem Message-ID: <000501c34022$930ffc70$0a00a8c0@mapping12> 179.99 and 89.99 work OK. The problem is that I receive on a regular basis minx,miny,maxx,maxy coordinates which define the area of a hardcopy map boundary. Since many hardcopy maps are made of the entire earth, the coordinates sent are -180,-90,180,90. I then create PostGIS features from these coordinates. If I project the data in ArcView 8 I get something like the attached image. The purple/pink is a box I defined as -180,-90,180,90 using WGS84 and then projected it to Mercator. I was hoping to achieve similar using PostGIS. What did you mean by 'exercising tmerc at the boundaries'? 'tmerc'? Thanks, Benjamin (I removed the image for the list. If you need it let me know) -----Original Message----- From: Paul Ramsey [mailto:pramsey@refractions.net] Sent: Tuesday, 1 July 2003 11:57 PM To: bwragg@tpg.com.au Subject: Re: FW: [postgis-users] Postgis Transform Problem cs2cs exercises proj4 which is what postgis uses, so the test is equivalent. You realize that you are exercising tmerc at the boundaries, right? I do not know what the correct behavior should be at that coordinate. What happens when you try 179.99 89.99? On Monday, June 30, 2003, at 10:53 PM, Benjamin Wragg wrote: > > I tried the cs2cs utility. I think I'm passing the correct paramaters. > If I enter the following: > > cs2cs +proj=latlong +ellps=WGS84 +to +proj=merc +lon_0=150.0 > 180 90 > > I get > > * * 0.00 > > If I type any other coordinate I get a figure back. So is the cs2cs > utility what Postgis uses to project it's coords? If it does, it seems > this is whats causing the problem. > > Thanks, > > Benjamin > > -----Original Message----- > From: postgis-users-bounces@postgis.refractions.net > [mailto:postgis-users-bounces@postgis.refractions.net] On Behalf Of > Paul Ramsey > Sent: Wednesday, 25 June 2003 10:55 PM > To: bwragg@tpg.com.au; PostGIS Users Discussion > Subject: Re: [postgis-users] Postgis Transform Problem > > > Those coordinates are right on the edge of the global plane, could be > hitting the edge of validity in the reprojection library. Try testing > the same stuff directly using the proj4 cs2cs utility. > > On Tuesday, June 24, 2003, at 10:35 PM, Benjamin Wragg wrote: > >> I'm having a problem with the transform function in Postgis. If I run >> the following query: >> >> select transform(GeometryFromText('MULTIPOLYGON(((112 -45 ,112 -10 >> ,155 -10 ,155 -45,112 -45)))',4326),54004) >> >> I get: >> >> SRID=54004;MULTIPOLYGON(((12467782.9688466 >> -5591295.91855339,12467782.9688466 -1111475.10285223,17254521.0729574 >> -1111475.10285223,17254521.0729574 -5591295.91855339,12467782.9688466 >> -5591295.91855339))) >> >> But if I do: >> >> select transform(GeometryFromText('MULTIPOLYGON(((-180 -90 ,-180 90 >> ,180 90 ,180 -90,-180 -90)))',4326),54004) >> >> I get: >> >> Error: transform: couldn't project polygon >> Warning: Error occurred while executing PL/pgSQL function transform >> Warning: line 2 at return >> >> Any ideas why? I turned the postgresql log level to debug5 to see if >> I > >> could get more detailed errors, but it's exactly the same error. I'm >> running postgresql 7.3.2, postgis 0.7.5 and proj 4.4.7 >> >> Thanks, >> >> Benjamin Wragg >> >> > Paul Ramsey > Refractions Research > Email: pramsey@refractions.net > Phone: (250) 885-0632 > > > _______________________________________________ > postgis-users mailing list postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > > Paul Ramsey Refractions Research Email: pramsey@refractions.net Phone: (250) 885-0632 From millardymecki@sympatico.ca Wed Jul 2 01:25:02 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Tue, 1 Jul 2003 20:25:02 -0400 Subject: [Mapserver-users] Python/Mapscript References: Message-ID: <011101c34030$6157d5a0$8000a8c0@pauls> Thanks Sean, Would you know if your program interfaces with previous versions ArcGis ? Also i have the mapserversource downloaded and Visual C++, so i guess i could build the python binaries(i've seen examples of this), but i wouldn't know how to install them. thx, Paul ----- Original Message ----- From: "Sean Gillies" To: "Paul Dymecki" Cc: Sent: Tuesday, July 01, 2003 10:24 AM Subject: Re: [Mapserver-users] Python/Mapscript > Paul, > > There are no official Python MapScript binaries. If I was a regular > Win32 user I would provide some. But alas. Would anyone else like > to step up, zip up their mapscript.py and mapscript.pyd and share > them? Michael? > > cheers, > Sean > > On Tuesday, July 1, 2003, at 06:12 AM, Paul Dymecki wrote: > > > Hi, > > Does anyone know if the mapserver pre-compiled binaries work with > > python/mapscript(windows), or is building mapserver a requirement? > > thanks, > > Paul > > > -- > Sean Gillies > sgillies at frii dot com > http://www.frii.com/~sgillies > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From jose.quintal@cfe.gob.mx Tue Jul 1 20:09:12 2003 From: jose.quintal@cfe.gob.mx (jose.quintal@cfe.gob.mx) Date: Tue, 1 Jul 2003 14:09:12 -0500 Subject: [Mapserver-users] Problem when using dynamic points with Rosa Applet Message-ID: I use Rose Applet and PHP/Mapscript Windows binary . Take gmap75.php like example. Everything works well when I use archives SHP; but when I create shp dynamic visualizes it, but when doing zoom lens, hangs the page and it marks time to me exceeded cgi This is my code to generate shp dynamic MenuMapAnJava.php file and I have inlcuido gmap75.php3 $p=mysql_query($sql) or die("Error al Ejecutar la Consulta"); // get a layer object representing your pointlayer $layerObj = $gpoMap->getLayerByName("Servicios"); $classObj = $layerObj->getClass(0); $lineaObj = ms_newLineObj(); $shp = ms_newShapeObj(MS_SHAPE_LINE); // create a new point object to hold the X Y data $pointObj = ms_newPointObj(); $i=1; while($reg=mysql_fetch_array($p)) { $a=$reg['ruta_rec']; $rpu_array[$i]=$reg['rpu']; $cuenta_array[$i]=$reg['ruta_rec']; $i++; $pointObj->setXY($b,$c); $lineaObj->add($pointObj); $shp->add($lineaObj); if($layerObj->addFeature($shp) == -1){ echo "Error al añadir punto al shp"; } } José Antonio Quintal Castillo Sistemas Tel 9243128 O 9243136 From guillaume.sueur@khi2.fr Wed Jul 2 08:22:08 2003 From: guillaume.sueur@khi2.fr (Guillaume SUEUR) Date: Wed, 02 Jul 2003 09:22:08 +0200 Subject: [Mapserver-users] MapServer and Oracle Message-ID: <3F028820.6050706@khi2.fr> Hi there, I was wondering about compatibility between MapServer and Oracle. Ok, I understand it's not the best pair of products and that PostGis would be better, but the Oracle database already exists and the guy doesn't want to change. Any experience would be appreciated. Thanks -- --------------------------- Guillaume SUEUR Ingénieur développement SIG KHI2 - BVA 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From mschulz@webgis.de Wed Jul 2 08:29:24 2003 From: mschulz@webgis.de (Michael Schulz) Date: Wed, 02 Jul 2003 09:29:24 +0200 Subject: [Mapserver-users] Python/Mapscript References: <011101c34030$6157d5a0$8000a8c0@pauls> Message-ID: <3F0289D4.49ECA515@webgis.de> Hi Sean, Paul, you could have a go with our win mapscript binaries. They are a little bit outdatet (a build from a 3.7 dev nightly) but they work fine for us here. There could be some things you need to check since we used MSVC .net compiler and have included oraclespatial support (you might need some libs ??). I send you the mapscript package directly, Paul. I will be on vacation for a week now, so afterwards i could build a more basic python-mapscript win binary from a recent mapserver release. Cheers, Michael Paul Dymecki schrieb: > Thanks Sean, > Would you know if your program interfaces with previous versions ArcGis > ? Also i have the mapserversource downloaded and Visual C++, so i guess i > could build the python binaries(i've seen examples of this), but i wouldn't > know how to install them. > thx, > Paul > ----- Original Message ----- > From: "Sean Gillies" > To: "Paul Dymecki" > Cc: > Sent: Tuesday, July 01, 2003 10:24 AM > Subject: Re: [Mapserver-users] Python/Mapscript > > > Paul, > > > > There are no official Python MapScript binaries. If I was a regular > > Win32 user I would provide some. But alas. Would anyone else like > > to step up, zip up their mapscript.py and mapscript.pyd and share > > them? Michael? > > > > cheers, > > Sean > > > > On Tuesday, July 1, 2003, at 06:12 AM, Paul Dymecki wrote: > > > > > Hi, > > > Does anyone know if the mapserver pre-compiled binaries work with > > > python/mapscript(windows), or is building mapserver a requirement? > > > thanks, > > > Paul > > > > > -- > > Sean Gillies > > sgillies at frii dot com > > http://www.frii.com/~sgillies > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de From schut@sarvision.com Wed Jul 2 08:42:14 2003 From: schut@sarvision.com (Vincent Schut) Date: Wed, 2 Jul 2003 09:42:14 +0200 Subject: [Mapserver-users] FW: [postgis-users] Postgis Transform Problem In-Reply-To: <000501c34022$930ffc70$0a00a8c0@mapping12> References: <000501c34022$930ffc70$0a00a8c0@mapping12> Message-ID: <200307020942.14605.schut@sarvision.com> Benjamin, my 2c on latlon and mercator: tmerc is 'transverse mercator', as used in the abreviation 'UTM': Universal Transverse Mercator. 'Exercising tmerc at the boundaries': in latlon systems (which are essentially unprojected, though they are sometimes called latlon or geographic 'projections'), the north and south pole are single points. In projections like (transverse) mercator however, the north and south pole are either not there (they fall outside the valide projection area) or can be regarded as being stretched till these 'points' occupy the entire northern and southern boundary line of the projection of the entire earth. You might better understand this if you look at these projections as wrapping the earth in a vertical cilinder and projecting each point of the sphere of the earth onto its nearest point on the surface of the cilinder. There are only 2 points that are undefined in this, because they are similarly equal in distance to more than one point, to be specific an entire line: the most upper and lower points of the spere, or any latlon point that has a latitude of 90 or -90. Try cs2cs with any other value as lon, and 90 or -90 as lat, and it will give you the same non-output as 180, 90, because all these coordinates are the same point: north or south pole. I don't know how arcview does it, but it must be some workaround of the normal projection formula, cause that will not give you one single point for these coordinates. It will either give you a line, or a 'undefined' result. On Wednesday 02 July 2003 00:46, Benjamin Wragg wrote: > 179.99 and 89.99 work OK. The problem is that I receive on a regular > basis minx,miny,maxx,maxy coordinates which define the area of a > hardcopy map boundary. Since many hardcopy maps are made of the entire > earth, the coordinates sent are -180,-90,180,90. I then create PostGIS > features from these coordinates. > > If I project the data in ArcView 8 I get something like the attached > image. The purple/pink is a box I defined as -180,-90,180,90 using WGS84 > and then projected it to Mercator. I was hoping to achieve similar using > PostGIS. > > What did you mean by 'exercising tmerc at the boundaries'? 'tmerc'? > > Thanks, > > Benjamin > > (I removed the image for the list. If you need it let me know) > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey@refractions.net] > Sent: Tuesday, 1 July 2003 11:57 PM > To: bwragg@tpg.com.au > Subject: Re: FW: [postgis-users] Postgis Transform Problem > > > cs2cs exercises proj4 which is what postgis uses, so the test is > equivalent. > You realize that you are exercising tmerc at the boundaries, right? I > do not know what the correct behavior should be at that coordinate. > What happens when you try 179.99 89.99? > > On Monday, June 30, 2003, at 10:53 PM, Benjamin Wragg wrote: > > I tried the cs2cs utility. I think I'm passing the correct paramaters. > > If I enter the following: > > > > cs2cs +proj=latlong +ellps=WGS84 +to +proj=merc +lon_0=150.0 > > 180 90 > > > > I get > > > > * * 0.00 > > > > If I type any other coordinate I get a figure back. So is the cs2cs > > utility what Postgis uses to project it's coords? If it does, it seems > > > > this is whats causing the problem. > > > > Thanks, > > > > Benjamin > > > > -----Original Message----- > > From: postgis-users-bounces@postgis.refractions.net > > [mailto:postgis-users-bounces@postgis.refractions.net] On Behalf Of > > Paul Ramsey > > Sent: Wednesday, 25 June 2003 10:55 PM > > To: bwragg@tpg.com.au; PostGIS Users Discussion > > Subject: Re: [postgis-users] Postgis Transform Problem > > > > > > Those coordinates are right on the edge of the global plane, could be > > hitting the edge of validity in the reprojection library. Try testing > > the same stuff directly using the proj4 cs2cs utility. > > > > On Tuesday, June 24, 2003, at 10:35 PM, Benjamin Wragg wrote: > >> I'm having a problem with the transform function in Postgis. If I run > >> the following query: > >> > >> select transform(GeometryFromText('MULTIPOLYGON(((112 -45 ,112 -10 > >> ,155 -10 ,155 -45,112 -45)))',4326),54004) > >> > >> I get: > >> > >> SRID=54004;MULTIPOLYGON(((12467782.9688466 > >> -5591295.91855339,12467782.9688466 -1111475.10285223,17254521.0729574 > >> -1111475.10285223,17254521.0729574 -5591295.91855339,12467782.9688466 > >> -5591295.91855339))) > >> > >> But if I do: > >> > >> select transform(GeometryFromText('MULTIPOLYGON(((-180 -90 ,-180 90 > >> ,180 90 ,180 -90,-180 -90)))',4326),54004) > >> > >> I get: > >> > >> Error: transform: couldn't project polygon > >> Warning: Error occurred while executing PL/pgSQL function transform > >> Warning: line 2 at return > >> > >> Any ideas why? I turned the postgresql log level to debug5 to see if > >> I > >> > >> could get more detailed errors, but it's exactly the same error. I'm > >> running postgresql 7.3.2, postgis 0.7.5 and proj 4.4.7 > >> > >> Thanks, > >> > >> Benjamin Wragg > > > > Paul Ramsey > > Refractions Research > > Email: pramsey@refractions.net > > Phone: (250) 885-0632 > > > > > > _______________________________________________ > > postgis-users mailing list postgis-users@postgis.refractions.net > > http://postgis.refractions.net/mailman/listinfo/postgis-users > > Paul Ramsey > Refractions Research > Email: pramsey@refractions.net > Phone: (250) 885-0632 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From sarawut@ait.ac.th Wed Jul 2 08:58:20 2003 From: sarawut@ait.ac.th (Sarawut Ninsawat) Date: Wed, 02 Jul 2003 14:58:20 +0700 Subject: [Mapserver-users] ArcExplorer client to Mapserv 3.6 Message-ID: <5.1.1.6.2.20030702144414.00aaff38@mail.ait.ac.th> Dear all I try to follow by Mapserver wiki:WMSMapserverArcexplorer :replace & with & in my map file. wms_onlineresource "http://myserver/cgi-bin/mapserv?map=/home/msapps/test/htdocs/thaiwms.map&" :get capabilities and edit to version 1.1.1 to php :cp resp.xml /var/www/html/wms.php :Connect to WMS by this URL "http://myserver/wms.php ; with blank service name. but ArcExplorer report that "Invalid Capabilities file Check Server URL" in command console report that GetCapabilities Request : http://myerver/cgi-bin/wms2.php?VERSION=1.1.1&WMTVER=1.1.1&SERVICE=WMS&REQUEST=capabilities ###### Start to WMS getCapabilities in GetWMSService class version=null ************** realVersion is = 1.1.0 ************** Version is = null Where is the error ? And I also use wrapper to mimic map name as described in "WMS server HowTo #!/bin/sh #File : /var/www/cgi-bin/thaiwms # MS_MAPFILE=/home/msapps/test/htdocs/thaiwms.map export MS_MAPFILE /var/www/cgi-bin/mapserv Best Regards Sarawut From braulioen@ono.com Wed Jul 2 09:23:23 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Wed, 02 Jul 2003 10:23:23 +0200 Subject: [Mapserver-users] Problem with ECW in PHP/Mapscript 3.7 Message-ID: Hello, I've begun to use the version 3.7 of PHP/Mapscript and I have a problem. I was using the version 3.6 and I could see a layer RASTER and now I can't, this layer now no longer is seen. This layer is a ECW image, we have a Image Web Server and the configuration of the layer in the MAP file is: LAYER NAME ortofoto TYPE RASTER STATUS ON DATA "ecwp://myserver/myimage.ecw" END This version is downloaded of DM Solutions (mapserver-3.7-dev-win32- php4.3.0-gd2.zip), I've decompress the ECW dll's, although they were the same ones that already I had, and I have been with this problem. To what east problem when changing of version could be due? Thanks in advance. Braulio. From s.wiegand@kdvz.de Wed Jul 2 10:23:29 2003 From: s.wiegand@kdvz.de (Stefan Wiegand) Date: Wed, 2 Jul 2003 11:23:29 +0200 Subject: [Mapserver-users] Mapserver WMS client and proxy server Message-ID: This is a multipart message in MIME format. --=_alternative 0033B185C1256D57_= Content-Type: text/plain; charset="us-ascii" Hello all, I am having problems with using the WMS-client support in MapServer 3.6 (CGI). I try to connect to an external WMS Server via layerdefinition. The request to the server simply does nothing until it times out. We are using a proxy and firewall between the mapserver and the Internet and this is the problem (sys-admin told me). It is not allowed to connect directly between cgi-exe and a server outside. Any ideas or solution how to handle this problem? Thanks Stefan Wiegand Mail: s.wiegand@kdvz.de www.kdvz.de --=_alternative 0033B185C1256D57_= Content-Type: text/html; charset="us-ascii"
Hello all,

I am having problems with using the WMS-client support in MapServer 3.6 (CGI). I try to connect to an external WMS Server via layerdefinition. The request to the server simply does nothing until it times out. We are using a proxy and firewall between the mapserver and the Internet and this is the problem (sys-admin told me). It is not allowed to connect directly between cgi-exe and a server outside. Any ideas or solution how to handle this problem?

Thanks
Stefan Wiegand
Mail: s.wiegand@kdvz.de
www.kdvz.de

--=_alternative 0033B185C1256D57_=-- From sarawut@ait.ac.th Wed Jul 2 11:11:47 2003 From: sarawut@ait.ac.th (Sarawut Ninsawat) Date: Wed, 02 Jul 2003 17:11:47 +0700 Subject: [Mapserver-users] How enable/disable group layer for WMS client Message-ID: <5.1.1.6.2.20030702170840.00b0ee48@mail.ait.ac.th> Dear I set up my GROUP layer (composed of 3 Layers) in map file of WMS. How does client (any such as mapser or ArcIMS) request to GROUP layer? Best Regards Sarawut LAYER NAME "sthailand" Group LANDSAT TYPE RASTER STATUS Off TILEINDEX "sthailand.shp" TILEITEM "Location" MinSCALE 1000001 END LAYER Group LANDSAT NAME "mthailand" TYPE RASTER STATUS Off TILEINDEX "mthailand.shp" TILEITEM "Location" MAXSCALE 1000000 MINSCALE 250001 END LAYER Group LANDSAT NAME "fthailand" TYPE RASTER STATUS Off TILEINDEX "fthailand.shp" TILEITEM "Location" MaxSCALE 250000 END From twan@twansoft.com Wed Jul 2 11:59:15 2003 From: twan@twansoft.com (Twan Kogels) Date: Wed, 02 Jul 2003 12:59:15 +0200 Subject: [Mapserver-users] bug #316 and ms4 missing functions Message-ID: <5.0.0.25.2.20030702124834.0342c300@pop.xs4all.nl> Hello, Tomorrow i've hit a know bug when quering a postgis layer with mapserver 3.6.5, its on bugszilla So i tryed the latest cvs version of mapserver (4.0b), it configures and compiles oke. But it some mapscript functions seems to have dissapear, for example i have mapscript generate a postgis layer: ========== $co=ms_newClassObj($lo); $co->set("name", "mysym"); $temp=$mymap->getSymbolByName('star'); $co->set("symbol", $temp); ========== This part of code returns a error: ========== Property 'symbol' does not exist in this object. ========== The same happens with: ========== $co->label->set("type", MS_BITMAP); $co->label->set("backgroundcolor", $mymap->addColor(255,255,225)); ========== results in: ========== Call to undefined function: addcolor() ========== These mapscript functions are doing it correct with mapserver 3.6.5. Is it possible that i've downloaded a cvs version where some mapscript functions are broken? If so, is it possible for me to modify the mapserver 3.6.5 source (which functions perfect) so bug #316 won't appear anymore? Best regards, Twan Kogels From Mark.Balman@birdlife.org.uk Wed Jul 2 12:14:57 2003 From: Mark.Balman@birdlife.org.uk (Mark Balman) Date: Wed, 2 Jul 2003 12:14:57 +0100 Subject: [Mapserver-users] php mapscript config help! Message-ID: Hi List Having finally managed to get php -4.2.3 (as a cgi) and mapserver (4.0b) installed onto Linux Mandrake 9 (thanks to all who have helped!), I thought I would try and have a go at configuring php mapscript. I managed to get a php_mapscript.so compiled without errors. Now when I call the info.php page to test I recieve the following error message: Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/php_mapscript.so' - /usr/local/lib/php/extensions/php_mapscript.so': undefined symbol: _ZNK19OGRSpatialReference7IsLocalEv in /var/www/html/info.php on line 2 I am guessing this means that one of the other libraries (GDAL?) is not configured properly. Please can anyone shed some light on this error and point me in the right direction. TIA Mark From spencer@dmsolutions.ca Wed Jul 2 12:28:02 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 02 Jul 2003 07:28:02 -0400 Subject: [Mapserver-users] bug #316 and ms4 missing functions In-Reply-To: <5.0.0.25.2.20030702124834.0342c300@pop.xs4all.nl> References: <5.0.0.25.2.20030702124834.0342c300@pop.xs4all.nl> Message-ID: <3F02C1C2.3040706@magma.ca> Twan, The format of the mapfile has changed somewhat. Two of the changes relate to your problem. The symbol is now part of a new style object, that is part of a class object. Color objects are no longer referenced by index because of 24 bit support, you now have an API to set the RGB color directly. This means that you would make the following: $co = ms_newClassObj($lo); $co->set("name", "mysym" ); $st = ms_newStyleObj($co); $st->set( "symbol", $mymap->getSymbolByName('star') ); $co->label->backgroundcolor->SetRGB( 255, 255, 255 ); The migration guide that explains these and other changes is at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide I recommend that you investigate the README in the mapscript/php3 directory for specific API details. I don't know how difficult back-porting the postgis query bug would be. Cheers, Paul Twan Kogels wrote: > Hello, > > Tomorrow i've hit a know bug when quering a postgis layer with mapserver > 3.6.5, its on bugszilla > > > So i tryed the latest cvs version of mapserver (4.0b), it configures and > compiles oke. But it some mapscript functions seems to have dissapear, > for example i have mapscript generate a postgis layer: > > ========== > $co=ms_newClassObj($lo); > $co->set("name", "mysym"); > $temp=$mymap->getSymbolByName('star'); > $co->set("symbol", $temp); > ========== > > This part of code returns a error: > ========== > Property 'symbol' does not exist in this object. > ========== > > The same happens with: > > ========== > $co->label->set("type", MS_BITMAP); > $co->label->set("backgroundcolor", $mymap->addColor(255,255,225)); > ========== > > results in: > ========== > Call to undefined function: addcolor() > ========== > > These mapscript functions are doing it correct with mapserver 3.6.5. > > Is it possible that i've downloaded a cvs version where some mapscript > functions are broken? If so, is it possible for me to modify the > mapserver 3.6.5 source (which functions perfect) so bug #316 won't > appear anymore? > > Best regards, > Twan Kogels > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From spencer@dmsolutions.ca Wed Jul 2 12:40:12 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 02 Jul 2003 07:40:12 -0400 Subject: [Mapserver-users] php mapscript config help! In-Reply-To: References: Message-ID: <3F02C49C.9060506@magma.ca> Mark, I believe that the problem is that you are compiling/linking against a different version of GDAL than you are linking against at runtime. If you chose the default prefix for GDAL then it would be installed in /usr/local/lib. Is it possible that you also installed GDAL in /usr/lib? Or that you did not run make install after you last ran make on GDAL? Cheers, Paul Mark Balman wrote: > Hi List > > Having finally managed to get php -4.2.3 (as a cgi) and mapserver (4.0b) > installed onto Linux Mandrake 9 (thanks to all who have helped!), I thought > I would try and have a go at configuring php mapscript. I managed to get a > php_mapscript.so compiled without errors. Now when I call the info.php page > to test I recieve the following error message: > > Warning: Unable to load dynamic library > '/usr/local/lib/php/extensions/php_mapscript.so' - > /usr/local/lib/php/extensions/php_mapscript.so': undefined symbol: > _ZNK19OGRSpatialReference7IsLocalEv in /var/www/html/info.php on line 2 > > I am guessing this means that one of the other libraries (GDAL?) is not > configured properly. Please can anyone shed some light on this error and > point me in the right direction. > > TIA > > Mark > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From braulioen@ono.com Wed Jul 2 13:20:27 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Wed, 02 Jul 2003 14:20:27 +0200 Subject: [Mapserver-users] queryByAttributes in PHP/Mapscript 3.7 Message-ID: <2f29927ae0.27ae02f299@ono.com> Hi at all, Somebody could send to me to some example of use of the function queryByAttributes in PHP/Mapscript 3.7 using several attributes? An example how to pass the parameters. Thanks. Braulio. From heitzso@growthmodels.com Wed Jul 2 13:29:10 2003 From: heitzso@growthmodels.com (Heitzso) Date: Wed, 02 Jul 2003 08:29:10 -0400 Subject: [Mapserver-users] converting e00 to postgis for use by mapserver Message-ID: <3F02D016.2090209@growthmodels.com> I need to convert a number of e00 files into postgis for use by mapserver. I've tracked down, compiled, and installed the e00pg utility but it's not clear to me what options are required to generate a geometry field that mapserver can take advantage of, nor how to push it from a point orientation to line/polygon/whatever orientation. BTW, if it's not obvious, I'm just getting started with mapserver and I apologize if I'm not catching something obvious. I have loaded shape files into postgis and am able to define layers that I turn on and off, so I've got a start on things, but have much to learn. --> GOOD GENERIC GIS BOOK RECOMMENDATIONS? Thanks, Heitzso From lfilak@medinaco.org Wed Jul 2 13:41:52 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 02 Jul 2003 08:41:52 -0400 Subject: [Mapserver-users] perl mapscript error Message-ID: <200307021241.h62CflN16680@yogi.medinaco.net> I think this is moving in the right direction. In http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptBuild35 there is a section referring to a private build that indicates that a few changes need made to the Makefile.PL & you will also need to do a "use lib" call before "use mapscript". (Credits to mapsurfer). HTH Lowell The following message was sent by "Aaron D. Hunt" on Tue, 1 Jul 2003 17:11:56 -0400. > Is there something I am missind in this confg. to use local lib installs? > > ./configure --without-tiff --with-proj=/usr/home/mapserver/proj-4.4.7/ --wit > h-gdal=/usr/home/mapserver/gdal-cvs-030626/bin/gdal-config --with-ogr=/usr/h > ome/mapserver/gdal-cvs-030626 --with-jpeg --with-wmsclient --with-freetype=/ > usr/home/mapserver/freetype-2.1.4 --with-gd=/usr/home/mapserver/gd-2.0.15 > > I am directing mapserver to use local install versions of libs, but it seems > to be picking its own to use. Is there a option to force the use of local > libs > > When I do the ldd mapserv I get > > libgd.so.2 => not found > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40029000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40048000) > libpng.so.2 => /usr/lib/libpng.so.2 (0x40087000) > libz.so.1 => /usr/lib/libz.so.1 (0x400aa000) > libproj.so.0 => /usr/local/lib/libproj.so.0 (0x400b8000) > libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x400e9000) > libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x40276000) > libssl.so.1 => /usr/lib/libssl.so.1 (0x4029b000) > libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x402c8000) > libdl.so.2 => /lib/libdl.so.2 (0x40385000) > libm.so.6 => /lib/libm.so.6 (0x4038a000) > libc.so.6 => /lib/libc.so.6 (0x403ac000) > libungif.so.4 => /usr/lib/libungif.so.4 (0x404e2000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x404ea000) > libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 > (0x4052d000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40570000) > > > ----- Original Message ----- > From: "Lowell Filak" > To: "Aaron D. Hunt" ; "Lowell Filak" > Sent: Tuesday, July 01, 2003 4:08 PM > Subject: Re: [Mapserver-users] perl mapscript error > > > > Check out > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptDebugging > > and in particular the sections provided by Frank W. & Daniel M. > > I think the important option to start with here is "ldd mapserv" to see > > what the compilation is trying to use. > > Lowell > > > > The following message was sent by "Aaron D. Hunt" on > > Tue, 1 Jul 2003 15:13:56 -0400. > > > > > I am using a local install of all the libraries. Is there a way to tell > > > which one it is trying to use. > > > ----- Original Message ----- > > > From: "Lowell Filak" > > > To: ; > > > Sent: Tuesday, July 01, 2003 3:09 PM > > > Subject: Re: [Mapserver-users] perl mapscript error > > > > > > > > > > Possibly an issue of library confusion? > > > > Lowell > > > > > > > > > > > > > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00385.html > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From schut@sarvision.com Wed Jul 2 13:55:40 2003 From: schut@sarvision.com (Vincent Schut) Date: Wed, 2 Jul 2003 14:55:40 +0200 Subject: [Mapserver-users] php mapscript config help! In-Reply-To: <3F02C49C.9060506@magma.ca> References: <3F02C49C.9060506@magma.ca> Message-ID: <200307021455.40525.schut@sarvision.com> Mark, you can check which gdal is being linked at runtime by typing 'ldd php_mapscript.so' (in the dir where php_mapscript.so is). It will give you info on all dynamically linked libraries. Note that you have to run 'ldconfig' (as root) everytime you (re)install a library, like gdal. And that the dir where the library gets installed must be in the /etc/ld.so.conf file, or in the LD_LIBRARY_PATH environment variable. And that the order in which dirs are in this file or var basically defines which one of two versions of a library file will be loaded if you have for example an old version still in /usr/lib and a newer in /usr/local/lib. If /usr/lib is first in the path row, it will be used, and vice versa. Self compiled libraries usually install in /usr/local/[lib|include|etc]; Distro packages like rpms usually get installed into /usr/[lib|include|...]. If you want to use your self compiled one, you'd better remove the preinstalled one if there was one. And then rerun ldconfig, to refresh the dynamic linker database/cache. Good luck, Vincent. On Wednesday 02 July 2003 13:40, Paul Spencer wrote: > Mark, > > I believe that the problem is that you are compiling/linking against a > different version of GDAL than you are linking against at runtime. > > If you chose the default prefix for GDAL then it would be installed in > /usr/local/lib. Is it possible that you also installed GDAL in > /usr/lib? Or that you did not run make install after you last ran make > on GDAL? > > Cheers, > > Paul > > Mark Balman wrote: > > Hi List > > > > Having finally managed to get php -4.2.3 (as a cgi) and mapserver (4.0b) > > installed onto Linux Mandrake 9 (thanks to all who have helped!), I > > thought I would try and have a go at configuring php mapscript. I managed > > to get a php_mapscript.so compiled without errors. Now when I call the > > info.php page to test I recieve the following error message: > > > > Warning: Unable to load dynamic library > > '/usr/local/lib/php/extensions/php_mapscript.so' - > > /usr/local/lib/php/extensions/php_mapscript.so': undefined symbol: > > _ZNK19OGRSpatialReference7IsLocalEv in /var/www/html/info.php on line 2 > > > > I am guessing this means that one of the other libraries (GDAL?) is not > > configured properly. Please can anyone shed some light on this error and > > point me in the right direction. > > > > TIA > > > > Mark > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From twan@twansoft.com Wed Jul 2 14:04:26 2003 From: twan@twansoft.com (Twan Kogels) Date: Wed, 02 Jul 2003 15:04:26 +0200 Subject: [Mapserver-users] bug #316 and ms4 missing functions In-Reply-To: <3F02C1C2.3040706@magma.ca> References: <5.0.0.25.2.20030702124834.0342c300@pop.xs4all.nl> <5.0.0.25.2.20030702124834.0342c300@pop.xs4all.nl> Message-ID: <5.0.0.25.2.20030702144718.0334ba78@pop.xs4all.nl> Hello Paul, Thanks for the reply, i've changed the code you had specified and now it works. But querying still gives me the #316 bug. Then i found out that i had downloaded the ms4.0b and not the latest from cvs (the nightly one), so i downloaded it and compiled it. Works great. The #316 bug is also gone, but now i've got a another strange error when querying a postgis layer: =============== Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT id::text,adnaa::text,adsub::text,adeti::text,adpub::text,adper::text,adafk::text,adlo1::text,adst1::text,adhu1::text,adto1::text,adpo1::text,adwo1::text,adwt1::text,adlo2::text,adst2::text,adhu2::text,adto2::text,adpo2::text,adwo2::text,adwt2::text,adpro::text,adlac::text,adlan::text,adpob::text,adne1::text,adab1::text,adat1::text,adne2::text,adab2::text,adat2::text,adne3::text,adab3::text,adat3::text,adtla::text,adnef::text,adabf::text,ademl::text,adwww::text,adach::text,advoo::text,adtus::text,adtit::text,admvo::text,adafd::text,adfun::text,adber::text,adwco::text,adwna::text,adves::text,adrel::text,adter::text,aduni::text,adond::text,addin::text,addco::text,addwy::text,addto::text,addve::text,adred::text,adopm::text,adtek::text,adnaa_dg::text,adsub_dg::text,adeti_dg::text,adpub_dg::text,adper_dg::text,adafk_dg::text,adlo1_dg::text,adst1_dg::text,adhu1_dg::text,adto =============== I suspected that this was only a half part of the error, so i modified mappostgis.c so that it would print the actual cause of the error (and not the long sql statement): =============== Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): temp -ERROR: Cannot cast type boolean to text More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' =============== I suspect there are 2 possible causes of this error: 1. the sql query is just too long, and gets shorten in the process which causes postgresql to give the error. 2. postgresql can't convert text to boolean (there are 2 boolean columns in my table) Is there a method which allows me to specify the columns which postgis should query, so that postgis does not try to query all the columns in the table. I'm using the following query on my postgis layer: ============ $lo->set("data", "the_geom from og"); ============ Table og contains about 150 colums (it couldn't be less, but that's out of the scope of the email). Best regards, Twan Kogels At 07:28 2-7-2003 -0400, you wrote: >Twan, > >The format of the mapfile has changed somewhat. Two of the changes relate >to your problem. > >The symbol is now part of a new style object, that is part of a class >object. Color objects are no longer referenced by index because of 24 bit >support, you now have an API to set the RGB color directly. > >This means that you would make the following: > >$co = ms_newClassObj($lo); >$co->set("name", "mysym" ); >$st = ms_newStyleObj($co); >$st->set( "symbol", $mymap->getSymbolByName('star') ); > > >$co->label->backgroundcolor->SetRGB( 255, 255, 255 ); > >The migration guide that explains these and other changes is at: > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide > >I recommend that you investigate the README in the mapscript/php3 >directory for specific API details. > >I don't know how difficult back-porting the postgis query bug would be. > >Cheers, > >Paul > >Twan Kogels wrote: > >>Hello, >>Tomorrow i've hit a know bug when quering a postgis layer with mapserver >>3.6.5, its on bugszilla >>So i tryed the latest cvs version of mapserver (4.0b), it configures and >>compiles oke. But it some mapscript functions seems to have dissapear, >>for example i have mapscript generate a postgis layer: >>========== >> $co=ms_newClassObj($lo); >> $co->set("name", "mysym"); >> $temp=$mymap->getSymbolByName('star'); >> $co->set("symbol", $temp); >>========== >>This part of code returns a error: >>========== >>Property 'symbol' does not exist in this object. >>========== >>The same happens with: >>========== >> $co->label->set("type", MS_BITMAP); >> $co->label->set("backgroundcolor", $mymap->addColor(255,255,225)); >>========== >>results in: >>========== >>Call to undefined function: addcolor() >>========== >>These mapscript functions are doing it correct with mapserver 3.6.5. >>Is it possible that i've downloaded a cvs version where some mapscript >>functions are broken? If so, is it possible for me to modify the >>mapserver 3.6.5 source (which functions perfect) so bug #316 won't appear >>anymore? >>Best regards, >>Twan Kogels >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >-- >Paul Spencer >Applications and Software Development >DM Solutions Group Inc. >http://www.dmsolutions.ca > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From peturkirke@fds.fo Wed Jul 2 13:29:03 2003 From: peturkirke@fds.fo (Petur Kirke) Date: Wed, 2 Jul 2003 14:29:03 +0200 Subject: [Mapserver-users] line width Message-ID: <00c201c34095$86529650$10fea8c0@fds.fo> This is a multi-part message in MIME format. ------=_NextPart_000_00BF_01C340A6.499D72F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is it possible to set the width (thickness) of a line in the map file ? and how do i do it ? ------=_NextPart_000_00BF_01C340A6.499D72F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is it possible to set the width = (thickness) of a=20 line in the map file ?
and how do i do it = ?
------=_NextPart_000_00BF_01C340A6.499D72F0-- From stefan.albers@kreis-steinfurt.de Wed Jul 2 14:43:03 2003 From: stefan.albers@kreis-steinfurt.de (stefan.albers@kreis-steinfurt.de) Date: Wed, 2 Jul 2003 15:43:03 +0200 Subject: [Mapserver-users] Error with Demo-Package Message-ID: Hi I've installed mapserver 3.6 on linux machine. Every things works perfectly well. When I run ..../cgi-bin/mapserv, I've got the following answer : No query information to decode. QUERY_STRING is set, but empty. If I understand well it means that mapserver is correctly installed Am I right ? I've downloaded the demo. When I run the demo_init.html I get the following Error msLoadMap(): General error message. Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. Any suggestions ? Stefan From gadoury@dmsolutions.ca Wed Jul 2 14:45:41 2003 From: gadoury@dmsolutions.ca (Dean Gadoury) Date: Wed, 02 Jul 2003 09:45:41 -0400 Subject: [Mapserver-users] line width References: <00c201c34095$86529650$10fea8c0@fds.fo> Message-ID: <3F02E205.3040103@dmsolutions.ca> --------------050901070700020903020406 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit There should be plenty on this in the archives. The quick answer is that you need to use a symbol and a size in your class. Here's an example: CLASS NAME "Major Highways" SYMBOL "circle" COLOR 255 0 0 SIZE 2 END Using a circle symbol with a size of 2 will result in a line two pixels wide. Using this approach you can make the lines any thickness you want. You can use any symbol you want, but a circle usually produces the best results. What happens is the symbol is used as a brush to 'paint' the line. Petur Kirke wrote: > Is it possible to set the width (thickness) of a line in the map file ? > and how do i do it ? -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury@dmsolutions.ca www.dmsolutions.ca --------------050901070700020903020406 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit There should be plenty on this in the archives. The quick answer is that you need to use a symbol and a size in your class. Here's an example:
    CLASS
      NAME "Major Highways"
      SYMBOL "circle"
      COLOR 255 0 0
      SIZE 2
    END
Using a circle symbol with a size of 2 will result in a line two pixels wide. Using this approach you can make the lines any thickness you want. You can use any symbol you want, but a circle usually produces the best results. What happens is the symbol is used as a brush to 'paint' the line.

Petur Kirke wrote:
Is it possible to set the width (thickness) of a line in the map file ?
and how do i do it ?

-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

gadoury@dmsolutions.ca
www.dmsolutions.ca

--------------050901070700020903020406-- From eric@gomoos.org Wed Jul 2 10:59:26 2003 From: eric@gomoos.org (Eric Bridger) Date: 02 Jul 2003 09:59:26 +0000 Subject: [Mapserver-users] line width In-Reply-To: <00c201c34095$86529650$10fea8c0@fds.fo> References: <00c201c34095$86529650$10fea8c0@fds.fo> Message-ID: <1057139977.1473.8.camel@ubet.gomoos.org> Yes. In your CLASS for your line layer use SYMBOL "circle" which allows you to set the SIZE to whatever you want. CLASS COLOR 255 0 0 # to get thicker lines SYMBOL "circle" SIZE 2 END # class On Wed, 2003-07-02 at 12:29, Petur Kirke wrote: > Is it possible to set the width (thickness) of a line in the map file ? > and how do i do it ? From gadoury@dmsolutions.ca Wed Jul 2 15:09:20 2003 From: gadoury@dmsolutions.ca (Dean Gadoury) Date: Wed, 02 Jul 2003 10:09:20 -0400 Subject: [Mapserver-users] image example References: <013d01c34011$a1ae4400$1c00000a@JMDSurvey> Message-ID: <3F02E790.2080702@dmsolutions.ca> --------------070701020708030708030601 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit CLASS NAME "Cities" SYMBOL "../etc/target-8.png" END John M. Duggan, LSIT wrote: > Can somebody give me an example of how to use an Image symbol in the > map file for a point layer. > thanks, > John > > John M. Duggan LSIT > gis@farmvilleva.com > http://www.farmvilleva.com > (434) 392-3333 > > "......for the whole universe is in Him and He dwells > within our heart." > -The Upanishads -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury@dmsolutions.ca www.dmsolutions.ca --------------070701020708030708030601 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit     CLASS
      NAME "Cities"
      SYMBOL "../etc/target-8.png"
    END

John M. Duggan, LSIT wrote:
Can somebody give me an example of how to use an Image symbol in the map file for a point layer.
thanks,
John
 
John M. Duggan LSIT
gis@farmvilleva.com
http://www.farmvilleva.com
(434) 392-3333
 
"......for the whole universe is in Him and He dwells
within our heart."
                          -The Upanishads

-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

gadoury@dmsolutions.ca
www.dmsolutions.ca

--------------070701020708030708030601-- From hunt@zedxinc.com Wed Jul 2 15:17:35 2003 From: hunt@zedxinc.com (Aaron D. Hunt) Date: Wed, 2 Jul 2003 10:17:35 -0400 Subject: [Mapserver-users] perl mapscript error References: <200307021241.h62CflN16680@yogi.medinaco.net> Message-ID: <01b601c340a4$af08ce70$1805000a@helicity> I think the gdal might be fixed, now I am getting Can't load '/home/mapserver/i386-linux/auto/mapscript40/mapscript40.so' for module mapscript40: /lib/libcrypto.sÀ: shared object not open at /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200. at /home/mapserver/i386-linux/mapscript40.pm line 7 Compilation failed in require at /usr/lib/perl5/site_perl/5.6.0/afdev/AgFleetGIS40.pm line 12. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/afdev/AgFleetGIS40.pm line 12. Compilation failed in require at /usr/home/httpd/cgi-bin//fs/products/lab_analysis_prod.cgi line 6. BEGIN failed--compilation aborted at /usr/home/httpd/cgi-bin//fs/products/lab_analysis_prod.cgi line 6. [Wed Jul 2 10:11:26 2003] [error] [client 12.151.18.194] Premature end of script headers: /usr/home/httpd/cgi-bin//fs/products/lab_analysis_prod.cgi ----- Original Message ----- From: "Lowell Filak" To: "Aaron D. Hunt" ; "Lowell Filak" Cc: Sent: Wednesday, July 02, 2003 8:41 AM Subject: Re: [Mapserver-users] perl mapscript error > I think this is moving in the right direction. > In http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptBuild35 > there is a section referring to a private build that indicates that a > few changes need made to the Makefile.PL & you will also need to do a > "use lib" call before "use mapscript". > (Credits to mapsurfer). > HTH > Lowell > > The following message was sent by "Aaron D. Hunt" on > Tue, 1 Jul 2003 17:11:56 -0400. > > > Is there something I am missind in this confg. to use local lib installs? > > > > ./configure --without-tiff --with-proj=/usr/home/mapserver/proj-4.4.7/ > --wit > > h-gdal=/usr/home/mapserver/gdal-cvs-030626/bin/gdal-config > --with-ogr=/usr/h > > ome/mapserver/gdal-cvs-030626 --with-jpeg --with-wmsclient > --with-freetype=/ > > usr/home/mapserver/freetype-2.1.4 --with-gd=/usr/home/mapserver/gd-2.0.15 > > > > I am directing mapserver to use local install versions of libs, but it > seems > > to be picking its own to use. Is there a option to force the use of local > > libs > > > > When I do the ldd mapserv I get > > > > libgd.so.2 => not found > > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40029000) > > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40048000) > > libpng.so.2 => /usr/lib/libpng.so.2 (0x40087000) > > libz.so.1 => /usr/lib/libz.so.1 (0x400aa000) > > libproj.so.0 => /usr/local/lib/libproj.so.0 (0x400b8000) > > libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x400e9000) > > libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x40276000) > > libssl.so.1 => /usr/lib/libssl.so.1 (0x4029b000) > > libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x402c8000) > > libdl.so.2 => /lib/libdl.so.2 (0x40385000) > > libm.so.6 => /lib/libm.so.6 (0x4038a000) > > libc.so.6 => /lib/libc.so.6 (0x403ac000) > > libungif.so.4 => /usr/lib/libungif.so.4 (0x404e2000) > > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x404ea000) > > libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 > > (0x4052d000) > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40570000) > > > > > > ----- Original Message ----- > > From: "Lowell Filak" > > To: "Aaron D. Hunt" ; "Lowell Filak" > > > Sent: Tuesday, July 01, 2003 4:08 PM > > Subject: Re: [Mapserver-users] perl mapscript error > > > > > > > Check out > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptDebugging > > > and in particular the sections provided by Frank W. & Daniel M. > > > I think the important option to start with here is "ldd mapserv" to see > > > what the compilation is trying to use. > > > Lowell > > > > > > The following message was sent by "Aaron D. Hunt" on > > > Tue, 1 Jul 2003 15:13:56 -0400. > > > > > > > I am using a local install of all the libraries. Is there a way to > tell > > > > which one it is trying to use. > > > > ----- Original Message ----- > > > > From: "Lowell Filak" > > > > To: ; > > > > Sent: Tuesday, July 01, 2003 3:09 PM > > > > Subject: Re: [Mapserver-users] perl mapscript error > > > > > > > > > > > > > Possibly an issue of library confusion? > > > > > Lowell > > > > > > > > > > > > > > > > > > > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00385.html > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From steve.lime@dnr.state.mn.us Wed Jul 2 15:19:56 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 02 Jul 2003 09:19:56 -0500 Subject: [Mapserver-users] bug #316 and ms4 missing functions Message-ID: The nightly is not current yet because of the switch in CVS servers. You'll need to use a CVS client to be sure your getting the absolutely newest code. Steve >>> Twan Kogels 07/02/03 08:04AM >>> Hello Paul, Thanks for the reply, i've changed the code you had specified and now it works. But querying still gives me the #316 bug. Then i found out that i had downloaded the ms4.0b and not the latest from cvs (the nightly one), so i downloaded it and compiled it. Works great. The #316 bug is also gone, but now i've got a another strange error when querying a postgis layer: =============== Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT id::text,adnaa::text,adsub::text,adeti::text,adpub::text,adper::text,adafk::text,adlo1::text,adst1::text,adhu1::text,adto1::text,adpo1::text,adwo1::text,adwt1::text,adlo2::text,adst2::text,adhu2::text,adto2::text,adpo2::text,adwo2::text,adwt2::text,adpro::text,adlac::text,adlan::text,adpob::text,adne1::text,adab1::text,adat1::text,adne2::text,adab2::text,adat2::text,adne3::text,adab3::text,adat3::text,adtla::text,adnef::text,adabf::text,ademl::text,adwww::text,adach::text,advoo::text,adtus::text,adtit::text,admvo::text,adafd::text,adfun::text,adber::text,adwco::text,adwna::text,adves::text,adrel::text,adter::text,aduni::text,adond::text,addin::text,addco::text,addwy::text,addto::text,addve::text,adred::text,adopm::text,adtek::text,adnaa_dg::text,adsub_dg::text,adeti_dg::text,adpub_dg::text,adper_dg::text,adafk_dg::text,adlo1_dg::text,adst1_dg::text,adhu1_dg::text,adto =============== I suspected that this was only a half part of the error, so i modified mappostgis.c so that it would print the actual cause of the error (and not the long sql statement): =============== Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): temp -ERROR: Cannot cast type boolean to text More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' =============== I suspect there are 2 possible causes of this error: 1. the sql query is just too long, and gets shorten in the process which causes postgresql to give the error. 2. postgresql can't convert text to boolean (there are 2 boolean columns in my table) Is there a method which allows me to specify the columns which postgis should query, so that postgis does not try to query all the columns in the table. I'm using the following query on my postgis layer: ============ $lo->set("data", "the_geom from og"); ============ Table og contains about 150 colums (it couldn't be less, but that's out of the scope of the email). Best regards, Twan Kogels At 07:28 2-7-2003 -0400, you wrote: >Twan, > >The format of the mapfile has changed somewhat. Two of the changes relate >to your problem. > >The symbol is now part of a new style object, that is part of a class >object. Color objects are no longer referenced by index because of 24 bit >support, you now have an API to set the RGB color directly. > >This means that you would make the following: > >$co = ms_newClassObj($lo); >$co->set("name", "mysym" ); >$st = ms_newStyleObj($co); >$st->set( "symbol", $mymap->getSymbolByName('star') ); > > >$co->label->backgroundcolor->SetRGB( 255, 255, 255 ); > >The migration guide that explains these and other changes is at: > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide > >I recommend that you investigate the README in the mapscript/php3 >directory for specific API details. > >I don't know how difficult back-porting the postgis query bug would be. > >Cheers, > >Paul > >Twan Kogels wrote: > >>Hello, >>Tomorrow i've hit a know bug when quering a postgis layer with mapserver >>3.6.5, its on bugszilla >>So i tryed the latest cvs version of mapserver (4.0b), it configures and >>compiles oke. But it some mapscript functions seems to have dissapear, >>for example i have mapscript generate a postgis layer: >>========== >> $co=ms_newClassObj($lo); >> $co->set("name", "mysym"); >> $temp=$mymap->getSymbolByName('star'); >> $co->set("symbol", $temp); >>========== >>This part of code returns a error: >>========== >>Property 'symbol' does not exist in this object. >>========== >>The same happens with: >>========== >> $co->label->set("type", MS_BITMAP); >> $co->label->set("backgroundcolor", $mymap->addColor(255,255,225)); >>========== >>results in: >>========== >>Call to undefined function: addcolor() >>========== >>These mapscript functions are doing it correct with mapserver 3.6.5. >>Is it possible that i've downloaded a cvs version where some mapscript >>functions are broken? If so, is it possible for me to modify the >>mapserver 3.6.5 source (which functions perfect) so bug #316 won't appear >>anymore? >>Best regards, >>Twan Kogels >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >-- >Paul Spencer >Applications and Software Development >DM Solutions Group Inc. >http://www.dmsolutions.ca > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From schut@sarvision.com Wed Jul 2 15:27:47 2003 From: schut@sarvision.com (Vincent Schut) Date: Wed, 2 Jul 2003 16:27:47 +0200 Subject: [Mapserver-users] Error with Demo-Package In-Reply-To: References: Message-ID: <200307021627.47638.schut@sarvision.com> short answer: search the mailing list archives (http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users) for 'ctyhwy.gif'. This will give you plenty of messages about the same issue. Longer answer: the demo is old, from the time gif wasn't copyrighted (or at least unisys didn't force their copyrights on it). Mapserver uses libgd to read/render graphics, which doesn't do gif anymore unless you have a special patched version (for which you officially require a license). The demo should be updated. Workaround: convert the gif's to png and change the refenrence to these gifs in the map files to the new png files. Cheers, Vincent. On Wednesday 02 July 2003 15:43, stefan.albers@kreis-steinfurt.de wrote: > Hi > > I've installed mapserver 3.6 on linux machine. > Every things works perfectly well. When I run ..../cgi-bin/mapserv, > I've got the following answer : No query information to decode. > QUERY_STRING is > set, but empty. > If I understand well it means that mapserver is correctly installed > Am I right ? > > I've downloaded the demo. When I run the demo_init.html I get the following > Error > > msLoadMap(): General error message. Undefined symbol "symbols/ctyhwy.gif" > in class 0 of layer ctyrdln3_anno. > > Any suggestions ? > > > Stefan > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From jhart@frw.uva.nl Wed Jul 2 15:42:51 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Wed, 02 Jul 2003 16:42:51 +0200 Subject: [Mapserver-users] JavaScript security In-Reply-To: <1057074936.319.5.camel@jeanjacques> References: <13858AA1A74F30419F319ACB66A9D1222BFC2E@mercator.topozone.com> <1057074936.319.5.camel@jeanjacques> Message-ID: <3F02EF6B.10404@frw.uva.nl> Hi Thorsten, Flavio, I'm a bit averse to responding to something that looks like a starting flame, but as I'm going to publish the MapClient application I presented at the MUM a few days from now, I feel I should give my personal view on this. MapClient is a browser interface for MapServer, exclusively based on JavaScript, without any HTML at all. I would not like to give the impression of living dangerously, and certainly not of inducing others to do so. There certainly are risks in using JavaScript in every browser. There is an excellent recent article in the leading German computer journal C'T ( http://www.heise.de/ct/browsercheck/ ). It's in German; perhaps someone from Germany on this list could translate or summarize it? It has many tests you can do with your browser to check for vulnerabilities, and some really are horrifying. However, if you have a modern browser with all recent updates, none of these vulnerablities will hurt you. My personal view is that the standard reference browser (Mozilla) is at the moment as safe as safe can be. Without any doubts security leaks will be discovered in the future, but the Mozilla group has an excellent security page (www.mozilla.org/security), and it combats the problem the only right way: by exposing its code and by publicizing every known leak. I'm not so sure about IE, but even there the security risks are minimal compared to mail-propagated security problems. I won't say you can ignore them, but if you are really that security conscious, you should shut off your mail too. Just use the Windows Update facility on a regular basis. IMO IE will always be less secure than Mozilla for two reasons: its code is closed, and the browser is too much integrated into the rest of the operating system. That being said, I have no qualms at all using it at the moment. AFAIK there are three fundamental risk areas: browsers reading and writing to local disks, browsers executing local programs, and browsers reading data from other concurrent browser windows. I'm not very afraid of the first two: as soon as someone uses such a leak it will be discovered and patched immediately. The third one is more insidious. Imagine doing your banking business in one browser window, and playing around with a malicious Javascript application in another. The second one should under no circumstance be allowed to read the contents of the first. Normally this is the case. However, aplications combining data from multiple servers, like WMS/WFS, are relatively new, so here I would expect problems in the future, especially in IE. Mozilla has a very fine grained security system, which is under active development, so I think it will keep up with this kind of security attacks. For myself, this means that I will develop the MapClient application on the basis of W3C standards and Mozilla as reference browser. It will be compatible with IE 5.5 and up, as long as it is one-server or one-site based (which covers the great majority of all current applications). Multi-server access will be added only in the Mozilla version. As I said, the three groupw of security leaks are potentially very serious, but I have not seen major accidents resulting from them in everyday practice. The most real security leaks are pages that try to register surfing behavior. This is certainly a breach of privacy and can be very annoying, especially from the resulting spam, but it is not a risk in the class of the three groups mentioned. Personally, I just ignore it. Mozilla has an excellent spam recognizing filter built into it, which can be trained on the actual spam you receive. After a few weeks of training it has a recogntion percentage of almost 100%. I can recommend it to everyone. I think the question is not so much whether the Internet is unsafe: it is. Neither is it whether you can live with it: millions of people can. You both are right. The question is: what can you do about it, and this depends on your situation. Speaking as a university person, almost nothing I do is really secret or indispensable. However, in the mapping business much has to be shielded, e.g. for financial or privacy reasons. Same goes for everything that has to do with money. There is no single security answer for all these situations, but every situation can be made as safe as you want. Concerning MapServer, for example, Steve Lime has recently added an excellent security mechanism, which makes it impossible to access the actual maps your application is based upon. However, you have to be aware of this mechanism and apply it. Same goes for PostgreSQL, which can be made very safe indeed, but you have to put some effort into it. Cryptography and certificates are very powerful tools too, once you have mastered them. I think the greatest error is trying to solve every possible problem in the same way. If parts of your applications are vulnerable, shield them. If you are just retrieving information, go ahead. No reason at all to turn off JavaScript, just don't mix both kinds of web access. The last thing we need is that all technological progress is halted because of shady behavior in the margins of the Internet. Jan From ed@topozone.com Wed Jul 2 15:56:22 2003 From: ed@topozone.com (Ed McNierney) Date: Wed, 2 Jul 2003 10:56:22 -0400 Subject: [Mapserver-users] Mapserver WMS client and proxy server Message-ID: <13858AA1A74F30419F319ACB66A9D1222BFC7E@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C340AA.19EF3B34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Stefan - =20 That's a little puzzling. How does the firewall know that a CGI is = making the request? It's just a regular HTTP GET request. =20 You should be able to construct a simple WMS request to that server by = simply typing the request in the address bar of your browser. Test to = see whether that request works in a regular browser session *running on = the WMS client server in the same security/user context as MapServer*. = Perhaps that server can't make HTTP requests at all (which makes sense). = But if a browser running on that machine can make the WMS request, the = CGI should be able to, too. =20 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 -----Original Message----- From: Stefan Wiegand [mailto:s.wiegand@kdvz.de] Sent: Wednesday, July 02, 2003 5:23 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Mapserver WMS client and proxy server Hello all,=20 I am having problems with using the WMS-client support in MapServer 3.6 = (CGI). I try to connect to an external WMS Server via layerdefinition. = The request to the server simply does nothing until it times out. We are = using a proxy and firewall between the mapserver and the Internet and = this is the problem (sys-admin told me). It is not allowed to connect = directly between cgi-exe and a server outside. Any ideas or solution how = to handle this problem?=20 Thanks=20 Stefan Wiegand=20 Mail: s.wiegand@kdvz.de www.kdvz.de=20 ------_=_NextPart_001_01C340AA.19EF3B34 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Stefan=20 -
 
That's=20 a little puzzling.  How does the firewall know that a CGI is making = the=20 request?  It's just a regular HTTP GET request.
 
You=20 should be able to construct a simple WMS request to that server by = simply typing=20 the request in the address bar of your browser.  Test to see = whether that=20 request works in a regular browser session *running on the WMS client = server in=20 the same security/user context as MapServer*.  Perhaps that server = can't=20 make HTTP requests at all (which makes sense).  But if a browser = running on=20 that machine can make the WMS request, the CGI should be able to,=20 too.
 
    - Ed

Ed McNierney
President and Chief = Mapmaker
TopoZone.com /=20 Maps a la carte, Inc.
73 Princeton Street, Suite 305
North = Chelmsford,=20 MA  01863
ed@topozone.com
(978) 251-4242 =

-----Original Message-----
From: Stefan Wiegand=20 [mailto:s.wiegand@kdvz.de]
Sent: Wednesday, July 02, 2003 = 5:23=20 AM
To: mapserver-users@lists.gis.umn.edu
Subject:=20 [Mapserver-users] Mapserver WMS client and proxy=20 server


Hello = all,=20

I am having problems with = using the=20 WMS-client support in MapServer 3.6 (CGI). I try to connect to an = external WMS=20 Server via layerdefinition. The request to the server simply does = nothing=20 until it times out. We are using a proxy and firewall between the = mapserver=20 and the Internet and this is the problem (sys-admin told me). It is = not=20 allowed to connect directly between cgi-exe and a server outside. Any = ideas or=20 solution how to handle this problem?

Thanks
Stefan = Wiegand=20
Mail:=20 s.wiegand@kdvz.de
www.kdvz.de
=
------_=_NextPart_001_01C340AA.19EF3B34-- From mschulz@webgis.de Wed Jul 2 16:14:28 2003 From: mschulz@webgis.de (Michael Schulz) Date: Wed, 02 Jul 2003 17:14:28 +0200 Subject: [Mapserver-users] python mapscript Message-ID: <3F02F6D4.C6EE25AC@webgis.de> Hi, i have a question concerning the new error handling code in python mapscript. While it is very good that mapscript now throws real meaningful exceptions for a lot of errors, it is somewhat annyoing that e.g. queryByPoint also gives an error when no records where found. What would be the correct way to change this behaviour? A bit more background information why this behaviour is annoying me (for those using python mapscript in the zmapserver environment): i am working on implementing query mechanisms in zmapserver, and in the combination zope-zmapserver-python/mapscript it seems, that i am not able to catch this exception correctly. Even worse, the zope process gets killed (although an error should be raised, the zope process segfaults). Well, as you might assume this is not the intended behaviour. Hmm, any ideas, where to start looking? TIA, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de From flavio@tydac.ch Wed Jul 2 16:28:20 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Wed, 02 Jul 2003 17:28:20 +0200 Subject: [Mapserver-users] JavaScript security In-Reply-To: <3F02EF6B.10404@frw.uva.nl> References: <13858AA1A74F30419F319ACB66A9D1222BFC2E@mercator.topozone.com> <1057074936.319.5.camel@jeanjacques> <3F02EF6B.10404@frw.uva.nl> Message-ID: Hi Jan > http://www.heise.de/ct/browsercheck there is no big need to translate that. almost all security issues mentioned are related to active scripting / active-x and that corresponds to what ed said ... js alone doesn't do it ... BTW: you took a lot of pictures at the pub. do you have some ??? did you publish some somewhere ??? thx & best regards flavio From bartvde@xs4all.nl Wed Jul 2 16:29:59 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Wed, 02 Jul 2003 17:29:59 +0200 Subject: [Mapserver-users] MapServer and Oracle In-Reply-To: <3F028820.6050706@khi2.fr> References: <3F028820.6050706@khi2.fr> Message-ID: Hi Guillaume, I would say the compatibility is more than reasonable. I have started an OracleSpatial page on the Wiki. There is not yet a lot of information on it, but you could take a look. More information will come. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial What kind of functionality do you need to provide? Best regards, Bart On Wed, 02 Jul 2003 09:22:08 +0200, Guillaume SUEUR wrote: > Hi there, > > I was wondering about compatibility between MapServer and Oracle. Ok, I > understand it's not the best pair of products and that PostGis would be > better, but the Oracle database already exists and the guy doesn't want > to change. Any experience would be appreciated. > > Thanks -- From flavio@tydac.ch Wed Jul 2 16:30:41 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Wed, 02 Jul 2003 17:30:41 +0200 Subject: [Mapserver-users] converting e00 to postgis for use by mapserver In-Reply-To: <3F02D016.2090209@growthmodels.com> References: <3F02D016.2090209@growthmodels.com> Message-ID: hi heitzso the newest version of FME (www.safe.com) supports PotGIS (and obvioulsy supports all ESRI formats). If you need sophisticated translation FME does it for you - however it a commercial product (but a good one!). bet regards flavio -----Original Message----- From: Heitzso To: "'mapserver-users@lists.gis.umn.edu'" Date: Wed, 02 Jul 2003 08:29:10 -0400 Subject: [Mapserver-users] converting e00 to postgis for use by mapserver > I need to convert a number of e00 files into postgis for > use by mapserver. I've tracked down, compiled, and installed > the e00pg utility but it's not clear to me what options are required > to > generate a geometry field that mapserver can take advantage of, > nor how to push it from a point orientation to line/polygon/whatever > orientation. > > BTW, if it's not obvious, I'm just getting started with mapserver > and I apologize if I'm not catching something obvious. I have > loaded shape files into postgis and am able to define layers that > I turn on and off, so I've got a start on things, but have much to > learn. --> GOOD GENERIC GIS BOOK RECOMMENDATIONS? > > Thanks, > Heitzso > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From bart@atsence.nl Wed Jul 2 16:39:44 2003 From: bart@atsence.nl (Bart van Heijningen) Date: Wed, 2 Jul 2003 17:39:44 +0200 Subject: [Mapserver-users] mapscript 3.7 $layer->draw() problems Message-ID: <002f01c340b0$2c7283f0$0700a8c0@ATSENCEDOMEIN> This is a multi-part message in MIME format. ------=_NextPart_000_0030_01C340C0.EFFB53F0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi all, I use Mapserver 4 with php mapscript Here's the thing, I am trying to draw newRectObj() on a map. The size and position are generated from mysql However I think I am missing something. What am I doing wrong here. I have been struggling with this for a few days now, help would be higly appreciated. Thanks, Bart // the map $wvimap = ms_newMapObj("rdm3.map"); $wvimap->selectOutputFormat('png24'); $wviimg = $wvimap->draw(); $imageobject = $wviimg->saveImage(test); // get correct layer $wvilayer = $wvimap->getLayerByName("$bleble"); //$layerhandle = $wvilayer->open('$shpFname',1); // Zoek in deze layer de eerste class $classObj = $wvilayer->getClass(0); echo "classobject = $classObj
\n"; $wvilayer->set("name", "$bleble"); $wvilayer->set (status,MS_ON); $wvilayer->set (type,MS_POLYGON); $wvilayer->set (classitem,$classObj); $wvilayer->set (labelitem,"WVI"); $wvilayer->set (data,"$shpFname"); $wvilayer->draw($wvimap,$classObj); // Declaration of the rectangle object $rectangle = ms_newRectObj(); // Here I calculate the values of the rectangle $rectangle->set("minx",($hshift+($measurements)*($rd_x))); $rectangle->set("miny",(($vshift+($measurements)*($rd_y)))); $rectangle->set("maxx",(($hshift+(($measurements)*($rd_x)+($barwidth))))); $rectangle->set("maxy",(($measurements)*($rd_y) + (($maxbarheight/$maxvalue)*($measurements))+($barminheight))); echo "minx = $rectangle->minx
\n"; echo "miny = $rectangle->miny
\n"; echo "maxx = $rectangle->maxx
\n"; echo "maxy = $rectangle->maxy
\n"; // the following draw Mapserver does not like. I cannot find any good examples how the draw for this rectobject should be used. $rectangle->draw(); the mapfile layer I want to use for displaying the rectObJect LAYER NAME "Ce-141" TYPE polygon STATUS ON CLASS NAME "Ce-141" COLOR 253 132 115 BACKGROUNDCOLOR 253 132 115 SYMBOL 'circle' LABEL TYPE TRUETYPE ANTIALIAS FALSE FONT arial COLOR 0 0 0 BACKGROUNDCOLOR 254 254 254 SIZE 6 # ANGLE 45 POSITION uc # buffer 2 END END END ------=_NextPart_000_0030_01C340C0.EFFB53F0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi all,

 

I use Mapserver 4 with php = mapscript

 

Here’s the thing,

I am trying to draw newRectObj() on a = map.

The size and position are generated from = mysql

However I think I am missing = something.

 

What am I doing wrong here. I have been struggling = with this for a few days now, help would be higly appreciated.

 

Thanks,

Bart

 

// the map

$wvimap =3D = ms_newMapObj("rdm3.map");

$wvimap->selectOutputFormat('png24');=

 

$wviimg =3D $wvimap->draw();

$imageobject =3D $wviimg->saveImage(test); =

 

//  get correct layer

$wvilayer =3D = $wvimap->getLayerByName("$bleble");

//$layerhandle =3D $wvilayer->open('$shpFname',1); =

// Zoek in deze layer de eerste = class

$classObj =3D = $wvilayer->getClass(0);

echo "classobject =3D = $classObj<br>\n";

$wvilayer->set("name", = "$bleble");

$wvilayer->set (status,MS_ON);

$wvilayer->set = (type,MS_POLYGON);

$wvilayer->set = (classitem,$classObj);

$wvilayer->set = (labelitem,"WVI");

$wvilayer->set = (data,"$shpFname");

$wvilayer->draw($wvimap,$classObj);

 

// Declaration of the rectangle = object

 

$rectangle =3D ms_newRectObj();

 

// Here I calculate the values of the rectangle =

 

 

$rectangle->set("minx",($hshift+($measure= ments)*($rd_x)));

$rectangle->set("miny",(($vshift+($measur= ements)*($rd_y))));

$rectangle->set("maxx",(($hshift+(($measu= rements)*($rd_x)+($barwidth)))));

$rectangle->set("maxy",(($measurements)*(= $rd_y) + = (($maxbarheight/$maxvalue)*($measurements))+($barminheight)));

 

echo "minx =3D = $rectangle->minx<BR>\n";

echo "miny =3D = $rectangle->miny<BR>\n";

echo "maxx =3D = $rectangle->maxx<BR>\n";

echo "maxy =3D = $rectangle->maxy<BR>\n";

 

// the following draw Mapserver does not = like…

I cannot find any good examples how the draw for this = rectobject should be used.

 

$rectangle->draw();

 

the mapfile layer I want to use for displaying the = rectObJect

 

LAYER

  NAME "Ce-141"

  TYPE polygon

  STATUS ON

  CLASS

    NAME = "Ce-141"

    COLOR 253 132 = 115

    BACKGROUNDCOLOR 253 132 = 115

    SYMBOL 'circle'

    LABEL

      TYPE = TRUETYPE

      ANTIALIAS = FALSE

      FONT = arial

      COLOR 0 0 = 0

      BACKGROUNDCOLOR 254 = 254 254

      SIZE = 6

#      ANGLE = 45

      POSITION = uc

#      buffer = 2

    END

  END

END

 

------=_NextPart_000_0030_01C340C0.EFFB53F0-- From jhart@frw.uva.nl Wed Jul 2 17:02:26 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Wed, 02 Jul 2003 18:02:26 +0200 Subject: [Mapserver-users] JavaScript security In-Reply-To: References: <13858AA1A74F30419F319ACB66A9D1222BFC2E@mercator.topozone.com> <1057074936.319.5.camel@jeanjacques> <3F02EF6B.10404@frw.uva.nl> Message-ID: <3F030212.2090306@frw.uva.nl> Even so, a translation would be very helpful, if only for activeX and all that. It is really an excellent article from an excellent journal. I don't understand why they don't have an English edition; they even have a Dutch one. I have sent my pictures to Tom Burk. He will publish them with the ones he took from the conference itself in a few days. Regards, Jan Flavio Hendry wrote: > Hi Jan > > >>http://www.heise.de/ct/browsercheck > > > there is no big need to translate that. almost all security issues > mentioned are related to active scripting / active-x and that > corresponds to what ed said ... js alone doesn't do it ... > > BTW: you took a lot of pictures at the pub. do you have some ??? did > you publish some somewhere ??? > > thx & best regards > flavio > > From sgillies@frii.com Wed Jul 2 17:06:43 2003 From: sgillies@frii.com (Sean Gillies) Date: Wed, 2 Jul 2003 10:06:43 -0600 Subject: [Mapserver-users] python mapscript In-Reply-To: <3F02F6D4.C6EE25AC@webgis.de> Message-ID: <2C68DC23-ACA7-11D7-BB35-000393B98B56@frii.com> Michael, I think this is probably an issue with MapServer's C library. Am looking into it now to see what happens in msQueryByPoint. I agree that msQueryByPoint should not raise an error in the case of no records found by an otherwise proper query. Another thing we could do is to evade the error in MapScript's error handler like we are doing with the error that is raised when no shapefile tileindex is present. Maybe this is the best way for now, and push to change msQuery* behavior for MapServer 4.1. cheers, Sean On Wednesday, July 2, 2003, at 09:14 AM, Michael Schulz wrote: > Hi, > > i have a question concerning the new error handling code in python > mapscript. While it is very good that mapscript now throws real > meaningful exceptions for a lot of errors, it is somewhat annyoing that > e.g. queryByPoint also gives an error when no records where found. What > would be the correct way to change this behaviour? > A bit more background information why this behaviour is annoying me > (for > those using python mapscript in the zmapserver environment): i am > working on implementing query mechanisms in zmapserver, and in the > combination zope-zmapserver-python/mapscript it seems, that i am not > able to catch this exception correctly. Even worse, the zope process > gets killed (although an error should be raised, the zope process > segfaults). Well, as you might assume this is not the intended > behaviour. Hmm, any ideas, where to start looking? > > TIA, Michael > -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From sholl@gmx.net Wed Jul 2 15:31:06 2003 From: sholl@gmx.net (Stephan Holl) Date: Wed, 2 Jul 2003 16:31:06 +0200 Subject: [Mapserver-users] Error with Demo-Package In-Reply-To: References: Message-ID: <20030702163106.76a41757.sholl@gmx.net> --?S(jv:MIFY=.Lt1W Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello stefan.albers@kreis-steinfurt.de, > > msLoadMap(): General error message. Undefined symbol > "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. Just my 2 cent, your gd-library does not support gif. Recompile with gif-support of convetr gifs to png (e.g. with convert) and, change mapfile-entries. That should work... cheers Stephan -- Stephan Holl GnuPG Key-ID: 11946A09 16:29:52 up 8:53, 1 user, load average: 0.14, 0.31, 0.30 --?S(jv:MIFY=.Lt1W Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/AuysEg9SKhGUagkRAvEyAJ9ZfSt0MLoPIBNrEyfcTtFyfHJrTwCgnOtI LqK76nUDOgGyRHg5CwVZw4w= =oF5/ -----END PGP SIGNATURE----- --?S(jv:MIFY=.Lt1W-- From bartvde@xs4all.nl Wed Jul 2 17:22:41 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Wed, 02 Jul 2003 18:22:41 +0200 Subject: [Mapserver-users] MapServer and Oracle In-Reply-To: <3F030757.90909@geosignal.fr> References: <3F028820.6050706@khi2.fr> <3F030757.90909@geosignal.fr> Message-ID: Hi Guillaume, I only have experience with mapserver as a WMS (web map server). This is read-only access to Oracle Spatial. If you want mapserver to create, modify and delete features in Oracle Spatial, you should ask the mailing list how far the WFS (web feature server) has been implemented. I think for the WFS mapserver will work with OGR and OGR can read and write Oracle Spatial data, so there is a slight chance some of these features will work, but am not sure if all of your actions will work. I do not have an answer to dynamic segmentation question, perhaps other people on the list are able to answer this question. Best regards, Bart On Wed, 02 Jul 2003 18:24:55 +0200, Guillaume Sueur wrote: > HI Bart, > > Thanks for this tip, I didn't notice the page on the site. > The topic would be to use MapServer to build a web-based GIS application > for sewers management... The database is done under Oracle Spatial and I > wanted to be sure MapServer could work with it. I see it's possible. So > comes the second point... Do you think MapServer can be use to manage all > these data (i.e create, modify, delete all kind of objects) ? > And now the third point... Is there a way to simulate a dynamic > segmentation on the lines with MapServer ? > > > Thanks for your help ! -- From schut@sarvision.com Wed Jul 2 17:26:07 2003 From: schut@sarvision.com (Vincent Schut) Date: Wed, 2 Jul 2003 18:26:07 +0200 Subject: [Mapserver-users] mapscript 3.7 $layer->draw() problems In-Reply-To: <002f01c340b0$2c7283f0$0700a8c0@ATSENCEDOMEIN> References: <002f01c340b0$2c7283f0$0700a8c0@ATSENCEDOMEIN> Message-ID: <200307021826.07525.schut@sarvision.com> Bart, according to the php_mapscript classes guide, you will have to add some arguments to rectangle->draw(): int draw(mapObj map, layerObj layer, imageObj img, int class_index, string text) Draws the individual rectangle using layer. The class_index is used to classify the rectangle based on the classes defined for the layer. The text string is used to annotate the rectangle. Returns MS_SUCCESS/MS_FAILURE. In your case this would become something like $rectangle->draw( $wvimap, $wvilayer, $wviimg, 0, '' ); I guess you will have to experiment a bit with this. I have never used it, actually. Don't forget to save the image *after* this rectangle drawing, instead of before. Cheers, Vincent. On Wednesday 02 July 2003 17:39, Bart van Heijningen wrote: > Hi all, > > > > I use Mapserver 4 with php mapscript > > > > Here's the thing, > > I am trying to draw newRectObj() on a map. > > The size and position are generated from mysql > > However I think I am missing something. > > > > What am I doing wrong here. I have been struggling with this for a few days > now, help would be higly appreciated. > > > > Thanks, > > Bart > > > > // the map > > $wvimap = ms_newMapObj("rdm3.map"); > > $wvimap->selectOutputFormat('png24'); > > > > $wviimg = $wvimap->draw(); > > $imageobject = $wviimg->saveImage(test); > > > > // get correct layer > > $wvilayer = $wvimap->getLayerByName("$bleble"); > > //$layerhandle = $wvilayer->open('$shpFname',1); > > // Zoek in deze layer de eerste class > > $classObj = $wvilayer->getClass(0); > > echo "classobject = $classObj
\n"; > > $wvilayer->set("name", "$bleble"); > > $wvilayer->set (status,MS_ON); > > $wvilayer->set (type,MS_POLYGON); > > $wvilayer->set (classitem,$classObj); > > $wvilayer->set (labelitem,"WVI"); > > $wvilayer->set (data,"$shpFname"); > > $wvilayer->draw($wvimap,$classObj); > > > > // Declaration of the rectangle object > > > > $rectangle = ms_newRectObj(); > > > > // Here I calculate the values of the rectangle > > > > > > $rectangle->set("minx",($hshift+($measurements)*($rd_x))); > > $rectangle->set("miny",(($vshift+($measurements)*($rd_y)))); > > $rectangle->set("maxx",(($hshift+(($measurements)*($rd_x)+($barwidth))))); > > $rectangle->set("maxy",(($measurements)*($rd_y) + > (($maxbarheight/$maxvalue)*($measurements))+($barminheight))); > > > > echo "minx = $rectangle->minx
\n"; > > echo "miny = $rectangle->miny
\n"; > > echo "maxx = $rectangle->maxx
\n"; > > echo "maxy = $rectangle->maxy
\n"; > > > > // the following draw Mapserver does not like. > > I cannot find any good examples how the draw for this rectobject should be > used. > > > > $rectangle->draw(); > > > > the mapfile layer I want to use for displaying the rectObJect > > > > LAYER > > NAME "Ce-141" > > TYPE polygon > > STATUS ON > > CLASS > > NAME "Ce-141" > > COLOR 253 132 115 > > BACKGROUNDCOLOR 253 132 115 > > SYMBOL 'circle' > > LABEL > > TYPE TRUETYPE > > ANTIALIAS FALSE > > FONT arial > > COLOR 0 0 0 > > BACKGROUNDCOLOR 254 254 254 > > SIZE 6 > > # ANGLE 45 > > POSITION uc > > # buffer 2 > > END > > END > > END -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From matt@terraEngine.com Wed Jul 2 18:21:12 2003 From: matt@terraEngine.com (Matt Lynch) Date: Wed, 2 Jul 2003 11:21:12 -0600 Subject: FW: [Mapserver-users] JavaScript security Message-ID: <000001c340be$56173030$d701a8c0@matt> For anyone who is curious on the content of the browsercheck site. As Jan noted, the translation isn't always smooth. http://www.google.com/translate_c?hl=en&ie=UTF-8&oe=UTF-8&langpair=de%7C en&u=http://www.heise.de/ct/browsercheck/&prev=/language_tools Matt -----Original Message----- From: Jan Hartmann [mailto:jhart@frw.uva.nl] Sent: Wednesday, July 02, 2003 10:38 AM To: Matt Lynch Subject: Re: [Mapserver-users] JavaScript security This is really very funny for someone who can read both German and English. However, it is understandable for English speakers. Did you send it to the list too? Jan Matt Lynch wrote: > The following link will provide a translation. > > http://www.google.com/translate_c?hl=en&ie=UTF-8&oe=UTF-8&langpair=de% > 7C > en&u=http://www.heise.de/ct/browsercheck/&prev=/language_tools > > Regards, > > Matt > > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Jan > Hartmann > Sent: Wednesday, July 02, 2003 10:02 AM > To: mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] JavaScript security > > > Even so, a translation would be very helpful, if only for activeX and > all that. It is really an excellent article from an excellent journal. I > > don't understand why they don't have an English edition; they even > have > a Dutch one. > > I have sent my pictures to Tom Burk. He will publish them with the > ones > he took from the conference itself in a few days. > > Regards, > > Jan > > Flavio Hendry wrote: > >>Hi Jan >> >> >> >>>http://www.heise.de/ct/browsercheck >> >> >>there is no big need to translate that. almost all security issues >>mentioned are related to active scripting / active-x and that >>corresponds to what ed said ... js alone doesn't do it ... >> >>BTW: you took a lot of pictures at the pub. do you have some ??? did >>you publish some somewhere ??? >> >>thx & best regards >>flavio >> >> > > > _______________________________________________ > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 > > > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 From pkishor@geoanalytics.com Wed Jul 2 18:47:52 2003 From: pkishor@geoanalytics.com (pkishor_98) Date: Wed, 02 Jul 2003 17:47:52 -0000 Subject: [Mapserver-users] Mapserver at OSCON 2003 Message-ID: I have managed to snag a trip to next week's O'Reilly open source convention (OSCON 2003) in Portland, Oregon. If any Mapserver-ers are attending, would be nice to get together and feel the glow of camaraderie. I have started a MapServerBOF page at the OSCON wiki at http://oscon.kwiki.org/ index.cgi?MapServerBOF. Feel free to add your nombre. Hope to see some of you there. Puneet. From steve.lime@dnr.state.mn.us Wed Jul 2 18:58:00 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 02 Jul 2003 12:58:00 -0500 Subject: [Mapserver-users] python mapscript Message-ID: MapServer query functions do return an error (MS_FAILURE) but also set the error code to MS_NOTFOUND so that folks can trap that condition specifically in their application. The CGI does that using the EMPTY web parameter. Yes, you could change the return status to MS_SUCCESS, but either way you'd have to examine the error code to see if no records were found (or worse the result set itself). It seems more intuitive to me to encourage that check by returning MS_FAILURE. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Sean Gillies 07/02/03 11:06AM >>> Michael, I think this is probably an issue with MapServer's C library. Am looking into it now to see what happens in msQueryByPoint. I agree that msQueryByPoint should not raise an error in the case of no records found by an otherwise proper query. Another thing we could do is to evade the error in MapScript's error handler like we are doing with the error that is raised when no shapefile tileindex is present. Maybe this is the best way for now, and push to change msQuery* behavior for MapServer 4.1. cheers, Sean On Wednesday, July 2, 2003, at 09:14 AM, Michael Schulz wrote: > Hi, > > i have a question concerning the new error handling code in python > mapscript. While it is very good that mapscript now throws real > meaningful exceptions for a lot of errors, it is somewhat annyoing that > e.g. queryByPoint also gives an error when no records where found. What > would be the correct way to change this behaviour? > A bit more background information why this behaviour is annoying me > (for > those using python mapscript in the zmapserver environment): i am > working on implementing query mechanisms in zmapserver, and in the > combination zope-zmapserver-python/mapscript it seems, that i am not > able to catch this exception correctly. Even worse, the zope process > gets killed (although an error should be raised, the zope process > segfaults). Well, as you might assume this is not the intended > behaviour. Hmm, any ideas, where to start looking? > > TIA, Michael > -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Zamil.Murji@divestco.com Wed Jul 2 19:03:19 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Wed, 2 Jul 2003 12:03:19 -0600 Subject: [Mapserver-users] Oracle Spatial Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A921@div-mx02.DIVESTCO.COM> Hello list, I want to use MapServer to draw an Oracle Spatial layer, however, I have never used Oracle Spatial. I have some questions I am sure you will be able to answer. 1) What utilities are available to import a shapefile into an Oracle Spatial database? Where can I download them from? 2) Need to know some good sites on how to setup Oracle 8i with the Spatial component, and I need a quick tutorial on how to create a table, alter a table, insert and select from that table. Any good sites? 3) I read on the newsgroup that there are two ways to go about this. One is to use the built in oracle spatial support and the other is to use ogr. I am running Apache on a windows 2000 box, what way is the best to go, easiest to setup? Thanks for your help Zamil -----Original Message----- From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] Sent: Wednesday, June 25, 2003 8:44 AM To: mapserver-users@lists.gis.umn.edu Cc: niklas "wörmann Subject: Re: [Mapserver-users] running v4 beta as a command line tool I've tested on MapServer 3.6.4 for Windows, using: $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > myresult.gif but if you try to open "myresult.gif" it crash... so I opened this file with a text editor and deleted the first two lines(the headers), then it works! regards Eduardo Patto Kanegae eduardo@linkgeo.com.br http://www.linkgeo.com.br *************************************** ***Fim da Mensagem / End of Message *** *************************************** On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut enscreveu: > De: Vincent Schut > Data: Wed, 25 Jun 2003 14:43:41 +0200 > Para: niklas wörmann , > Assunto: Re: [Mapserver-users] running v4 beta as a command line tool > > On Wednesday 25 June 2003 10:06, niklas wörmann wrote: > > Hi! > > i am trying to track down the reason mapserver isn´t working on my windows > > 2000 server. > > > > i remember seeing somewhere that it was indeed possible to run mapserver as > > a command line tool, specifying a map file and an output file > > > > anyone know the syntax for this? > > On linux: > ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" > This will output headers + image data to stdout (on linux). Probably on > windows your executable is not named mapserv but something like mapserv.exe? > And use \ instead of / I think. > > you cannot just save the output as image file because the headers are in the > output too. > But you can see if it outputs something (lots of ascii: image), or gives an > error. > To see the image: type in your browser: > http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map > change / in path to \ if on windows? > > Regards, > -- > ______________________________________ > Vincent Schut > Sarvision B.V. > Wageningen, The Netherlands > www.sarvision.com > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Wed Jul 2 19:07:46 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 02 Jul 2003 14:07:46 -0400 Subject: [Mapserver-users] perl mapscript error Message-ID: <200307021807.h62I7eN26005@yogi.medinaco.net> Should it be looking for libcrypto.so.1 in /lib when the ldd shows libcrypto.so.1 being in /usr/lib? Lowell The following message was sent by "Aaron D. Hunt" on Wed, 2 Jul 2003 10:17:35 -0400. > I think the gdal might be fixed, now I am getting > > Can't load '/home/mapserver/i386-linux/auto/mapscript40/mapscript40.so' for > module mapscript40: /lib/libcrypto.sÀ: shared object not open at > /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200. > at /home/mapserver/i386-linux/mapscript40.pm line 7 > Compilation failed in require at > /usr/lib/perl5/site_perl/5.6.0/afdev/AgFleetGIS40.pm line 12. > BEGIN failed--compilation aborted at > /usr/lib/perl5/site_perl/5.6.0/afdev/AgFleetGIS40.pm line 12. > Compilation failed in require at > /usr/home/httpd/cgi-bin//fs/products/lab_analysis_prod.cgi line 6. > BEGIN failed--compilation aborted at > /usr/home/httpd/cgi-bin//fs/products/lab_analysis_prod.cgi line 6. > [Wed Jul 2 10:11:26 2003] [error] [client 12.151.18.194] Premature end of > script headers: /usr/home/httpd/cgi-bin//fs/products/lab_analysis_prod.cgi > > > ----- Original Message ----- > From: "Lowell Filak" > To: "Aaron D. Hunt" ; "Lowell Filak" > Cc: > Sent: Wednesday, July 02, 2003 8:41 AM > Subject: Re: [Mapserver-users] perl mapscript error > > > > I think this is moving in the right direction. > > In http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptBuild35 > > there is a section referring to a private build that indicates that a > > few changes need made to the Makefile.PL & you will also need to do a > > "use lib" call before "use mapscript". > > (Credits to mapsurfer). > > HTH > > Lowell > > > > The following message was sent by "Aaron D. Hunt" on > > Tue, 1 Jul 2003 17:11:56 -0400. > > > > > Is there something I am missind in this confg. to use local lib > installs? > > > > > > ./configure --without-tiff --with-proj=/usr/home/mapserver/proj-4.4.7/ > > --wit > > > h-gdal=/usr/home/mapserver/gdal-cvs-030626/bin/gdal-config > > --with-ogr=/usr/h > > > ome/mapserver/gdal-cvs-030626 --with-jpeg --with-wmsclient > > --with-freetype=/ > > > > usr/home/mapserver/freetype-2.1.4 --with-gd=/usr/home/mapserver/gd-2.0.15 > > > > > > I am directing mapserver to use local install versions of libs, but it > > seems > > > to be picking its own to use. Is there a option to force the use of > local > > > libs > > > > > > When I do the ldd mapserv I get > > > > > > libgd.so.2 => not found > > > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40029000) > > > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40048000) > > > libpng.so.2 => /usr/lib/libpng.so.2 (0x40087000) > > > libz.so.1 => /usr/lib/libz.so.1 (0x400aa000) > > > libproj.so.0 => /usr/local/lib/libproj.so.0 (0x400b8000) > > > libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x400e9000) > > > libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x40276000) > > > libssl.so.1 => /usr/lib/libssl.so.1 (0x4029b000) > > > libcrypto.so.1 => /usr/lib/libcrypto.so.1 (0x402c8000) > > > libdl.so.2 => /lib/libdl.so.2 (0x40385000) > > > libm.so.6 => /lib/libm.so.6 (0x4038a000) > > > libc.so.6 => /lib/libc.so.6 (0x403ac000) > > > libungif.so.4 => /usr/lib/libungif.so.4 (0x404e2000) > > > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x404ea000) > > > libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 > > > (0x4052d000) > > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40570000) > > > > > > > > > ----- Original Message ----- > > > From: "Lowell Filak" > > > To: "Aaron D. Hunt" ; "Lowell Filak" > > > > > Sent: Tuesday, July 01, 2003 4:08 PM > > > Subject: Re: [Mapserver-users] perl mapscript error > > > > > > > > > > Check out > > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptDebugging > > > > and in particular the sections provided by Frank W. & Daniel M. > > > > I think the important option to start with here is "ldd mapserv" to > see > > > > what the compilation is trying to use. > > > > Lowell > > > > > > > > The following message was sent by "Aaron D. Hunt" > on > > > > Tue, 1 Jul 2003 15:13:56 -0400. > > > > > > > > > I am using a local install of all the libraries. Is there a way to > > tell > > > > > which one it is trying to use. > > > > > ----- Original Message ----- > > > > > From: "Lowell Filak" > > > > > To: ; > > > > > Sent: Tuesday, July 01, 2003 3:09 PM > > > > > Subject: Re: [Mapserver-users] perl mapscript error > > > > > > > > > > > > > > > > Possibly an issue of library confusion? > > > > > > Lowell > > > > > > > > > > > > > > > > > > > > > > > > > > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00385.html > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From bartvde@xs4all.nl Wed Jul 2 19:21:52 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Wed, 02 Jul 2003 20:21:52 +0200 Subject: [Mapserver-users] Oracle Spatial In-Reply-To: <64FC1B3E23F04C4E931EE3F6D809FF30A921@div-mx02.DIVESTCO.COM> References: <64FC1B3E23F04C4E931EE3F6D809FF30A921@div-mx02.DIVESTCO.COM> Message-ID: Hi Zamil, otn (Oracle technology network) is the best site for Oracle information. Oracle itself has a tool to import shapefiles into Oracle Spatial. http://otn.oracle.com (you can register for free) The easiest to use is the built-in Oracle Spatial support. To use the support through OGR, you have to compile OGR against the Oracle client library. See also the mapserver wiki Oracle Spatial page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji wrote: > Hello list, > > I want to use MapServer to draw an Oracle Spatial layer, however, I have > never used Oracle Spatial. I have some questions I am sure you will be > able to answer. > > 1) What utilities are available to import a shapefile into an Oracle > Spatial database? Where can I download them from? 2) Need to know some > good sites on how to setup Oracle 8i with the Spatial component, and I > need a quick tutorial on how to create a table, alter a table, insert and > select from that table. Any good sites? > 3) I read on the newsgroup that there are two ways to go about this. One > is to use the built in oracle spatial support and the other is to use > ogr. I am running Apache on a windows 2000 box, what way is the best to > go, easiest to setup? > > Thanks for your help > Zamil > > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Wednesday, June 25, 2003 8:44 AM > To: mapserver-users@lists.gis.umn.edu > Cc: niklas "wörmann > Subject: Re: [Mapserver-users] running v4 beta as a command line tool > > > I've tested on MapServer 3.6.4 for Windows, using: > > $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > > myresult.gif > > but if you try to open "myresult.gif" it crash... > > so I opened this file with a text editor and deleted the first two > lines(the headers), then it works! > > regards > > Eduardo Patto Kanegae > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > > > On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut > enscreveu: > >> De: Vincent Schut >> Data: Wed, 25 Jun 2003 14:43:41 +0200 >> Para: niklas wörmann , > users@lists.gis.umn.edu> >> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >> >> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >> > Hi! >> > i am trying to track down the reason mapserver isn´t working on my >> windows >> > 2000 server. >> > >> > i remember seeing somewhere that it was indeed possible to run >> mapserver as >> > a command line tool, specifying a map file and an output file >> > >> > anyone know the syntax for this? >> >> On linux: >> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >> This will output headers + image data to stdout (on linux). Probably on >> windows your executable is not named mapserv but something like >> mapserv.exe? And use \ instead of / I think. >> >> you cannot just save the output as image file because the headers are in >> the output too. >> But you can see if it outputs something (lots of ascii: image), or gives >> an error. >> To see the image: type in your browser: >> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >> change / in path to \ if on windows? >> >> Regards, >> -- ______________________________________ >> Vincent Schut >> Sarvision B.V. >> Wageningen, The Netherlands >> www.sarvision.com >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- From sgillies@frii.com Wed Jul 2 19:55:42 2003 From: sgillies@frii.com (Sean Gillies) Date: Wed, 2 Jul 2003 12:55:42 -0600 Subject: [Mapserver-users] python mapscript In-Reply-To: Message-ID: --Apple-Mail-4--591952750 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Wednesday, July 2, 2003, at 11:58 AM, Steve Lime wrote: > MapServer query functions do return an error (MS_FAILURE) but also set > the error code to MS_NOTFOUND so that folks can trap that condition > specifically in their application. The CGI does that using the EMPTY > web > parameter. Yes, you could change the return status to MS_SUCCESS, but > either way you'd have to examine the error code to see if no records > were found (or worse the result set itself). It seems more intuitive to > me to encourage that check by returning MS_FAILURE. > > Steve > > Stephen Lime > Data & Applications Manager > > Michael, Try replacing pymodule.i in your mapscript/python directory with the one I've attached to this email. It implements a new Python exception named 'MapServerNotFoundError' which will be raised when MapServer throws a MS_NOTFOUND error in queryByPoint(). I chose this name because 'NotFoundError' is too ambiguous and MS_NOTFOUNDError doesn't look like a Python exception. In the future, we could add exceptions like 'MapServerGDError' etc. To use it, you'll do try: queryByPoint() except MapServerNotFoundError: # No records found ... If it works, I'll commit it to CVS. I still think that msQueryByPoint shouldn't throw an error when there are no records, but that the application itself should check the returned record set. We'll work this out one way or the other before 4.1. cheers, Sean --Apple-Mail-4--591952750 Content-Disposition: attachment; filename=pymodule.i Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="pymodule.i" /****************************************************************************** * $Id: pymodule.i,v 1.3 2003/06/17 04:34:07 sean Exp $ * * Project: MapServer * Purpose: Python-specific enhancements to MapScript * Author: Sean Gillies, sgillies@frii.com * ****************************************************************************** * * Python-specific mapscript code has been moved into this * SWIG interface file to improve the readibility of the main * interface file. The main mapscript.i file includes this * file when SWIGPYTHON is defined (via 'swig -python ...'). * *****************************************************************************/ /****************************************************************************** * Supporting 'None' as an argument to attribute accessor functions ****************************************************************************** * * Typemaps to support NULL in attribute accessor functions * provided to Steve Lime by David Beazley and tested for Python * only by Sean Gillies. * * With the use of these typemaps and some filtering on the mapscript * wrapper code to change the argument parsing of *_set() methods from * "Os" to "Oz", we can execute statements like * * layer.group = None * *****************************************************************************/ #ifdef __cplusplus %typemap(memberin) char * { if ($1) delete [] $1; if ($input) { $1 = ($1_type) (new char[strlen($input)+1]); strcpy((char *) $1,$input); } else { $1 = 0; } } %typemap(memberin,warning="451:Setting const char * member may leak memory.") const char * { if ($input) { $1 = ($1_type) (new char[strlen($input)+1]); strcpy((char *) $1,$input); } else { $1 = 0; } } %typemap(globalin) char * { if ($1) delete [] $1; if ($input) { $1 = ($1_type) (new char[strlen($input)+1]); strcpy((char *) $1,$input); } else { $1 = 0; } } %typemap(globalin,warning="451:Setting const char * variable may leak memory.") const char * { if ($input) { $1 = ($1_type) (new char[strlen($input)+1]); strcpy((char *) $1,$input); } else { $1 = 0; } } #else %typemap(memberin) char * { if ($1) free((char*)$1); if ($input) { $1 = ($1_type) malloc(strlen($input)+1); strcpy((char*)$1,$input); } else { $1 = 0; } } %typemap(memberin,warning="451:Setting const char * member may leak memory.") const char * { if ($input) { $1 = ($1_type) malloc(strlen($input)+1); strcpy((char*)$1,$input); } else { $1 = 0; } } %typemap(globalin) char * { if ($1) free((char*)$1); if ($input) { $1 = ($1_type) malloc(strlen($input)+1); strcpy((char*)$1,$input); } else { $1 = 0; } } %typemap(globalin,warning="451:Setting const char * variable may leak memory.") const char * { if ($input) { $1 = ($1_type) malloc(strlen($input)+1); strcpy((char*)$1,$input); } else { $1 = 0; } } #endif // __cplusplus /************************************************************************** * MapServer Errors and Python Exceptions ************************************************************************** * * Translation of errors reported via the ms_error structure into * Python exceptions. Original code by Chris Chamberlin * has been updated by Sean Gillies to use * PyErr_SetString, %exception and $action for SWIG 1.3, do the most * obvious mapping of MapServer errors to Python exceptions and map all * others to a new 'MapservError' exception which can be caught like this: * * from mapscript import * * empty_map = mapObj('') * try: * img = empty_map.draw() * except MapservError, msg: * print "Caught MapservError:", msg * *************************************************************************/ %{ PyObject *MSExc_MapservError; PyObject *MSExc_MapServerNotFoundError; %} %init %{ // Generic MapServer error MSExc_MapservError = PyErr_NewException("_mapscript.MapservError", NULL, NULL); if (MSExc_MapservError != NULL) PyDict_SetItemString(d, "MapservError", MSExc_MapservError); // MapServer query MS_NOTFOUND error MSExc_MapServerNotFoundError = PyErr_NewException("_mapscript.MapServerNotFoundError", NULL, NULL); if (MSExc_MapServerNotFoundError != NULL) PyDict_SetItemString(d, "MapServerNotFoundError", MSExc_MapServerNotFoundError); %} %{ static void _raise_ms_exception(void) { char errbuf[256]; char errmsg[2048]; // room for up to 8 * 256 byte messages int errcode; errorObj *ms_error; strcpy(errmsg, ""); ms_error = msGetErrorObj(); errcode = ms_error->code; // Step through the error list, appending to the output error // message. while (ms_error && ms_error->code > 0) { snprintf(errbuf, 255, "%s: %s %s\n", ms_error->routine, msGetErrorString(ms_error->code), ms_error->message); strcat(errmsg, errbuf); ms_error = ms_error->next; } // Map MapServer errors to Python exceptions, will define // custom Python exceptions soon. The exception we raise // is based on the error at the head of the MapServer error // list. All other errors appear in the error message. switch (errcode) { case MS_IOERR: PyErr_SetString(PyExc_IOError, errmsg); break; case MS_MEMERR: PyErr_SetString(PyExc_MemoryError, errmsg); break; case MS_TYPEERR: PyErr_SetString(PyExc_TypeError, errmsg); break; case MS_EOFERR: PyErr_SetString(PyExc_EOFError, errmsg); break; case MS_NOTFOUND: PyErr_SetString(MSExc_MapServerNotFoundError, errmsg); break; default: PyErr_SetString(MSExc_MapservError, errmsg); break; } } %} %exception { $action { errorObj *ms_error = msGetErrorObj(); // Sidestep the annoying MS_IOERR raised by msSearchDiskTree() // in maptree.c when a layer's shapetree index can't be found if ((ms_error->code != MS_NOERR) && (ms_error->code != -1) && !((ms_error->code == MS_IOERR) && (strcmp(ms_error->routine, "msSearchDiskTree()") == 0))) { _raise_ms_exception(); // Clear the error list msResetErrorList(); return NULL; } } } %pythoncode %{ MapservError = _mapscript.MapservError MapServerNotFoundError = _mapscript.MapServerNotFoundError %} --Apple-Mail-4--591952750 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies --Apple-Mail-4--591952750-- From gabriel@ciasc.gov.br Wed Jul 2 20:10:56 2003 From: gabriel@ciasc.gov.br (Gabriel Vieira Ferrari) Date: Wed, 2 Jul 2003 16:10:56 -0300 Subject: [Mapserver-users] Styleitem "auto" References: Message-ID: <038d01c340cd$aa9f8440$12d713ac@ciasc.gov.br> Hi listers. What's the use and meaning of STYLEITEM "auto" ? Is it possible to control color, font, size, etc. from ANNOTATION. Thanks. From bmurch@seas.marine.usf.edu Wed Jul 2 20:15:49 2003 From: bmurch@seas.marine.usf.edu (Brock Murch) Date: Wed, 2 Jul 2003 15:15:49 -0400 Subject: [Mapserver-users] adding RASTER Layer Message-ID: <200307021515.49112.bmurch@marine.usf.edu> Lo all: I seem to have stumbled into a problem. I am working throught the tutorial and have had much success, however, I can't seem to make the s2ex3 raster layer work. If I comment out the: #LAYER # Shaded Relief Raster # NAME "relief" # DATA "raster/shdrlfi020g_ugl.tif" # STATUS DEFAULT # TYPE RASTER # OFFSITE 0 #END it works fine. However, if the layer is place I get no image, just a small vertical line (probably the border). I am using the newest version of mapserver. mapserv -v MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp hdf4 gif jpeg png I have tried it with my own data too. png format with a png world file following the above map file format with the same results. What am I missing? I'm not sure what to try next. Any thoughts would be greatly appreciated. -- Brock Murch Institute for Marine Remote Sensing University of South Florida 140 7th Ave South St. Petersburg, FL 33701 http://imars.usf.edu/ (727) 553-1186 From keon@nacse.org Wed Jul 2 20:42:06 2003 From: keon@nacse.org (Dylan Keon) Date: Wed, 02 Jul 2003 12:42:06 -0700 Subject: [Mapserver-users] adding RASTER Layer In-Reply-To: <200307021515.49112.bmurch@marine.usf.edu> References: <200307021515.49112.bmurch@marine.usf.edu> Message-ID: <3F03358E.2000302@nacse.org> Brock, Syntax for OFFSITE changed in 4.0. OFFSITE now takes an RGB value instead of a single class index value. So, for example, if you're trying to make black pixels transparent you would now use "OFFSITE 0 0 0" instead of "OFFSITE 0" (assuming class 0 was assigned to black pixels). You could first try commenting out just the OFFSITE line to see if you get anything... --Dylan Brock Murch wrote: > Lo all: > I seem to have stumbled into a problem. I am working throught the tutorial > and have had much success, however, I can't seem to make the s2ex3 raster > layer work. If I comment out the: > > #LAYER # Shaded Relief Raster > # NAME "relief" > # DATA "raster/shdrlfi020g_ugl.tif" > # STATUS DEFAULT > # TYPE RASTER > # OFFSITE 0 > #END > > it works fine. > > However, if the layer is place I get no image, just a small vertical line > (probably the border). I am using the newest version of mapserver. > > mapserv -v > MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > gdal-config --formats > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem jdem > envisat elas fit vrt usgsdem l1b nitf bmp hdf4 gif jpeg png > > I have tried it with my own data too. png format with a png world file > following the above map file format with the same results. > > What am I missing? I'm not sure what to try next. Any thoughts would be > greatly appreciated. > > -- ************************************************ Dylan Keon GIS/Database Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon@nacse.org (541) 737-6608 ************************************************ From bmurch@seas.marine.usf.edu Wed Jul 2 20:50:35 2003 From: bmurch@seas.marine.usf.edu (Brock Murch) Date: Wed, 2 Jul 2003 15:50:35 -0400 Subject: [Mapserver-users] adding RASTER Layer In-Reply-To: <3F03358E.2000302@nacse.org> References: <200307021515.49112.bmurch@marine.usf.edu> <3F03358E.2000302@nacse.org> Message-ID: <200307021550.35079.bmurch@marine.usf.edu> Dylan: Thanks, but no luck. Whether I comment out the #OFFSITE line, or put in OFFSITE 0 0 0 still gives me no image other that the vertival border I spoke of earlier. Brock On Wednesday 02 July 2003 3:42 pm, Dylan Keon wrote: > Brock, > > Syntax for OFFSITE changed in 4.0. OFFSITE now takes an RGB value > instead of a single class index value. So, for example, if you're > trying to make black pixels transparent you would now use "OFFSITE 0 0 > 0" instead of "OFFSITE 0" (assuming class 0 was assigned to black pixels). > > You could first try commenting out just the OFFSITE line to see if you > get anything... > > --Dylan > > Brock Murch wrote: > > Lo all: > > I seem to have stumbled into a problem. I am working throught the > > tutorial and have had much success, however, I can't seem to make the > > s2ex3 raster layer work. If I comment out the: > > > > #LAYER # Shaded Relief Raster > > # NAME "relief" > > # DATA "raster/shdrlfi020g_ugl.tif" > > # STATUS DEFAULT > > # TYPE RASTER > > # OFFSITE 0 > > #END > > > > it works fine. > > > > However, if the layer is place I get no image, just a small vertical line > > (probably the border). I am using the newest version of mapserver. > > > > mapserv -v > > MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > gdal-config --formats > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem > > jdem envisat elas fit vrt usgsdem l1b nitf bmp hdf4 gif jpeg png > > > > I have tried it with my own data too. png format with a png world file > > following the above map file format with the same results. > > > > What am I missing? I'm not sure what to try next. Any thoughts would be > > greatly appreciated. From jhart@frw.uva.nl Wed Jul 2 21:05:59 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Wed, 02 Jul 2003 22:05:59 +0200 Subject: FW: [Mapserver-users] JavaScript security In-Reply-To: <000001c340be$56173030$d701a8c0@matt> References: <000001c340be$56173030$d701a8c0@matt> Message-ID: <3F033B27.5060407@frw.uva.nl> Slightly off topic I'm afraid, but people simply don't realise how different English and German are. The great American writer Mark Twain wrote a travel book about Germany about 1880, and in an appendix he describes how he tried to learn German. It is one of his funniest pieces, but it also gives a good feel how differently things are put in German. There are many sites with this text, inside and outside Germany. See for example http://www.kombu.de/twain-2.htm His Heidelberg address at the end is simply marvelous. See: http://www.bdsnett.no/klaus/twain/#A Enjoy, Jan Matt Lynch wrote: > For anyone who is curious on the content of the browsercheck site. As > Jan noted, the translation isn't always smooth. > > http://www.google.com/translate_c?hl=en&ie=UTF-8&oe=UTF-8&langpair=de%7C > en&u=http://www.heise.de/ct/browsercheck/&prev=/language_tools > > Matt > > -----Original Message----- > From: Jan Hartmann [mailto:jhart@frw.uva.nl] > Sent: Wednesday, July 02, 2003 10:38 AM > To: Matt Lynch > Subject: Re: [Mapserver-users] JavaScript security > > > This is really very funny for someone who can read both German and > English. However, it is understandable for English speakers. Did you > send it to the list too? > > Jan > > Matt Lynch wrote: > >>The following link will provide a translation. >> >>http://www.google.com/translate_c?hl=en&ie=UTF-8&oe=UTF-8&langpair=de% >>7C >>en&u=http://www.heise.de/ct/browsercheck/&prev=/language_tools >> >>Regards, >> >>Matt >> >>-----Original Message----- >>From: mapserver-users-admin@lists.gis.umn.edu >>[mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Jan >>Hartmann >>Sent: Wednesday, July 02, 2003 10:02 AM >>To: mapserver-users@lists.gis.umn.edu >>Subject: Re: [Mapserver-users] JavaScript security >> >> >>Even so, a translation would be very helpful, if only for activeX and >>all that. It is really an excellent article from an excellent journal. > > I > >>don't understand why they don't have an English edition; they even >>have >>a Dutch one. >> >>I have sent my pictures to Tom Burk. He will publish them with the >>ones >>he took from the conference itself in a few days. >> >>Regards, >> >>Jan >> >>Flavio Hendry wrote: >> >> >>>Hi Jan >>> >>> >>> >>> >>>>http://www.heise.de/ct/browsercheck >>> >>> >>>there is no big need to translate that. almost all security issues >>>mentioned are related to active scripting / active-x and that >>>corresponds to what ed said ... js alone doesn't do it ... >>> >>>BTW: you took a lot of pictures at the pub. do you have some ??? did >>>you publish some somewhere ??? >>> >>>thx & best regards >>>flavio >>> >>> >> >> >>_______________________________________________ >>Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >>--- >>Incoming mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 >> >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 >> >> >> >> > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From bartvde@xs4all.nl Wed Jul 2 21:22:50 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Wed, 02 Jul 2003 22:22:50 +0200 Subject: [mapserver-users] huge performance problem with ECW Message-ID: Hi all, I have a big problem when I zoom in to a high level on a big ECW file. The file is 4 Gb. I also have the same file in tiles of approximately 1 Gb. When the boundingbox is (units is meters): bbox=171760,449736,173257,451421 (So approximately 1500 x 1700 m) The image takes less than 1 second to be created and memory usage on the server of mapserv.exe is 6 Mb. bbox=171760,450736,172257,451421 (So approximately 500 x 700 m) The image takes more than 34 second to be created and memory usage on the server of mapserv.exe is more than 50 Mb. WITHOUT TILES: almost 100 Mb memory and more than 50 seconds to render image!! Can anybody help? Is this normal behaviour? --- WMS --- I have also noticed some minor problems with the WMS interface: -when I include an SRS in my WMS request for a raster layer, I get a projection error: msProcessProjection(): Projection library error. no system list, errno: 2 when I leave out the SRS I get the image. Although according to the WMS capabilities mapserver should be able to render my raster (which is in EPSG:28992, the same as the SRS I request) in EPSG:28992. Because OGC WMS layers inherit the SRS and boundingboxes from their parent layers, i.e. from the bounding box and SRS present in the mapfile. -when I request for capabilities without a version (1.1.0), IE does not recognize the content-type. The content-type is empty in the open/save dialog which comes to the screen. Opera recognizes the content-type, but the filename ends with exe which causes some "security" problems (filename: mapserv.exe). In IE the filename is just mapserv. Is there a way to overcome this? Best regards, Bart From Zamil.Murji@divestco.com Wed Jul 2 21:36:12 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Wed, 2 Jul 2003 14:36:12 -0600 Subject: [Mapserver-users] Oracle Spatial Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A922@div-mx02.DIVESTCO.COM> Thanks Bart for the quick reply... I was able to convert my shapefiles into oracle spatial format using some tools on otn. Using those tools they insert NULL as the SRID. Will this cause grief? According to the WIKI you had to specify a SRID otherwise you got a mapserver error. Is this correct? Is there any way to see what query mapserver will be running? Like a log file or something of the sort. In the connection string, does service refer to the ip address? Thanks in advance, Zamil -----Original Message----- From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] Sent: Wednesday, July 02, 2003 12:22 PM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Oracle Spatial Hi Zamil, otn (Oracle technology network) is the best site for Oracle information. Oracle itself has a tool to import shapefiles into Oracle Spatial. http://otn.oracle.com (you can register for free) The easiest to use is the built-in Oracle Spatial support. To use the support through OGR, you have to compile OGR against the Oracle client library. See also the mapserver wiki Oracle Spatial page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji wrote: > Hello list, > > I want to use MapServer to draw an Oracle Spatial layer, however, I have > never used Oracle Spatial. I have some questions I am sure you will be > able to answer. > > 1) What utilities are available to import a shapefile into an Oracle > Spatial database? Where can I download them from? 2) Need to know some > good sites on how to setup Oracle 8i with the Spatial component, and I > need a quick tutorial on how to create a table, alter a table, insert and > select from that table. Any good sites? > 3) I read on the newsgroup that there are two ways to go about this. One > is to use the built in oracle spatial support and the other is to use > ogr. I am running Apache on a windows 2000 box, what way is the best to > go, easiest to setup? > > Thanks for your help > Zamil > > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Wednesday, June 25, 2003 8:44 AM > To: mapserver-users@lists.gis.umn.edu > Cc: niklas "wörmann > Subject: Re: [Mapserver-users] running v4 beta as a command line tool > > > I've tested on MapServer 3.6.4 for Windows, using: > > $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > > myresult.gif > > but if you try to open "myresult.gif" it crash... > > so I opened this file with a text editor and deleted the first two > lines(the headers), then it works! > > regards > > Eduardo Patto Kanegae > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > > > On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut > enscreveu: > >> De: Vincent Schut >> Data: Wed, 25 Jun 2003 14:43:41 +0200 >> Para: niklas wörmann , > users@lists.gis.umn.edu> >> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >> >> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >> > Hi! >> > i am trying to track down the reason mapserver isn´t working on my >> windows >> > 2000 server. >> > >> > i remember seeing somewhere that it was indeed possible to run >> mapserver as >> > a command line tool, specifying a map file and an output file >> > >> > anyone know the syntax for this? >> >> On linux: >> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >> This will output headers + image data to stdout (on linux). Probably on >> windows your executable is not named mapserv but something like >> mapserv.exe? And use \ instead of / I think. >> >> you cannot just save the output as image file because the headers are in >> the output too. >> But you can see if it outputs something (lots of ascii: image), or gives >> an error. >> To see the image: type in your browser: >> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >> change / in path to \ if on windows? >> >> Regards, >> -- ______________________________________ >> Vincent Schut >> Sarvision B.V. >> Wageningen, The Netherlands >> www.sarvision.com >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- From bart@atsence.nl Wed Jul 2 22:41:05 2003 From: bart@atsence.nl (Bart van Heijningen) Date: Wed, 2 Jul 2003 23:41:05 +0200 Subject: [Mapserver-users] PHP Mapscript writing rectangles with ms_newRectObj(); on the fly Message-ID: <000001c340e2$a7a4d550$0700a8c0@ATSENCEDOMEIN> Hi all, Before I get out of here I would like to leave a question here , hoping that one of you guys can help me out. I use Mapserver4 on RH 8.0 PHP mapscript. >From a mysql table I want to generate a bar chart which I want to display as a layer on a map. The location is x,y from the dbase as well. Sof far I am stuck with drawing the rectangle bar chart. I want to use The thing I try to do is define the amount of bars to display on the given location and then draw the inidvidual bars defined by their value and define a colour for the bars. $wvilayer = $wvimap->getLayerByName("$unit"); $rectObj = ms_newRectObj(); How should I now proceed? I have tried a dozen things but I think I am overlooking something. Here's what I have: Get the layer that refers to the location data where I want to print a bar chart. $wvilayer = $wvimap->getLayerByName("$unit"); // Get the first class of the layer $classObj = $wvilayer->getClass(0); //get location data from mysql $pointObj->setXY($rd_x,$rd_y); $line = ms_newLineObj(); $line ->add($pointObj); $shp = ms_newShapeObj(MS_SHAPE_POINT); $shp->add($line); //$shp->{text} = $measurements; //$shp->{index} = ($count2); if($wvilayer->addFeature($shp) == -1){ echo "addFeature failed"; } $pointObj = ms_newPointObj(); $rectObj = ms_newRectObj(); //$rectObj->setextent($rd_x, $rd_y, // ($rd_x + $hshift) , ($rd_y*$measurements)); $pointObj->setXY($rd_x,$rd_y); $line = ms_newLineObj(); $line ->add($pointObj); $shp = ms_newShapeObj(MS_SHAPE_POINT); $shp->add($line); //$shp->{text} = $measurements; //$shp->{index} = ($count2); if($wvilayer->addFeature($shp) == -1){ echo "addFeature failed"; } // Here the minx miny maxx and maxy and measure value of the bars in // the chart are calculated // These points are calculated correctly $rectObj->set("minx",(($rd_x)-($hshift))); $rectObj->set("miny",(($rd_y)+($vshift))); $rectObj->set("maxx",(($rd_x)-($hshift)+($barwidth))); $rectObj->set("maxy",((($rd_y)+($vshift)+($measurements)))); echo "count2 = $count2
\n"; echo "meetwaarde count 2 = $point_lookup[$count2]
\n"; //$count2++; $rectObj->draw( $wvimap, $wvilayer, $wviimg, 0, $measurements ); Here it goes wrong the layer is not drawn on the map. ++++++++++ ++++++++++ map file ++++++++++++++++++++++ LAYER NAME "Ba-140" TYPE polygon POSTLABELCACHE TRUE STATUS OFF CLASS NAME "Ba-140" COLOR 208 28 2 BACKGROUNDCOLOR 208 28 2 SYMBOL 'circle' LABEL TYPE TRUETYPE ANTIALIAS FALSE PARTIALS FALSE POSITION AUTO FONT fritqat COLOR 0 0 0 BACKGROUNDCOLOR 254 254 254 SIZE 6 POSITION uc END END END From Zamil.Murji@divestco.com Wed Jul 2 22:50:02 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Wed, 2 Jul 2003 15:50:02 -0600 Subject: [Mapserver-users] Oracle Spatial Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A923@div-mx02.DIVESTCO.COM> After using the oracle tools to convert my shapefile into an oracle spatial format, this is what I have: SQL> select * from oilwells where gid = 1; GID ---------- GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- 1 SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY( -112.08855, 48.9998283, -112.08855, 48.9998283)) SQL> Notice that the SDO_POINT(X, Y, Z) column is NULL. Can mapserver handle this case. I guess the otn utilities utilize the last two columns. Also note that the SRID is null. When i draw my image, I get the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map definition for this layer. LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE oraclespatial CONNECTION "sdb/sdb@10.0.50.30" DATA "GEOMETRY FROM OILWELLS USING SRID NULL" # DUMP TRUE MAXSCALE 20 SYMBOLSCALE 2 CLASS SYMBOL 3 SIZE 12 MAXSIZE 28 MINSIZE 4 END END I am using mapserver 3.6.6 precompiled with oracle spatial support from the mapserver downloads page. Any help would be greatly appreciated. Thanks Zamil -----Original Message----- From: Zamil Murji Sent: Wednesday, July 02, 2003 2:36 PM To: bartvde@xs4all.nl; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Thanks Bart for the quick reply... I was able to convert my shapefiles into oracle spatial format using some tools on otn. Using those tools they insert NULL as the SRID. Will this cause grief? According to the WIKI you had to specify a SRID otherwise you got a mapserver error. Is this correct? Is there any way to see what query mapserver will be running? Like a log file or something of the sort. In the connection string, does service refer to the ip address? Thanks in advance, Zamil -----Original Message----- From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] Sent: Wednesday, July 02, 2003 12:22 PM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Oracle Spatial Hi Zamil, otn (Oracle technology network) is the best site for Oracle information. Oracle itself has a tool to import shapefiles into Oracle Spatial. http://otn.oracle.com (you can register for free) The easiest to use is the built-in Oracle Spatial support. To use the support through OGR, you have to compile OGR against the Oracle client library. See also the mapserver wiki Oracle Spatial page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji wrote: > Hello list, > > I want to use MapServer to draw an Oracle Spatial layer, however, I have > never used Oracle Spatial. I have some questions I am sure you will be > able to answer. > > 1) What utilities are available to import a shapefile into an Oracle > Spatial database? Where can I download them from? 2) Need to know some > good sites on how to setup Oracle 8i with the Spatial component, and I > need a quick tutorial on how to create a table, alter a table, insert and > select from that table. Any good sites? > 3) I read on the newsgroup that there are two ways to go about this. One > is to use the built in oracle spatial support and the other is to use > ogr. I am running Apache on a windows 2000 box, what way is the best to > go, easiest to setup? > > Thanks for your help > Zamil > > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Wednesday, June 25, 2003 8:44 AM > To: mapserver-users@lists.gis.umn.edu > Cc: niklas "wörmann > Subject: Re: [Mapserver-users] running v4 beta as a command line tool > > > I've tested on MapServer 3.6.4 for Windows, using: > > $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > > myresult.gif > > but if you try to open "myresult.gif" it crash... > > so I opened this file with a text editor and deleted the first two > lines(the headers), then it works! > > regards > > Eduardo Patto Kanegae > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > > > On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut > enscreveu: > >> De: Vincent Schut >> Data: Wed, 25 Jun 2003 14:43:41 +0200 >> Para: niklas wörmann , > users@lists.gis.umn.edu> >> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >> >> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >> > Hi! >> > i am trying to track down the reason mapserver isn´t working on my >> windows >> > 2000 server. >> > >> > i remember seeing somewhere that it was indeed possible to run >> mapserver as >> > a command line tool, specifying a map file and an output file >> > >> > anyone know the syntax for this? >> >> On linux: >> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >> This will output headers + image data to stdout (on linux). Probably on >> windows your executable is not named mapserv but something like >> mapserv.exe? And use \ instead of / I think. >> >> you cannot just save the output as image file because the headers are in >> the output too. >> But you can see if it outputs something (lots of ascii: image), or gives >> an error. >> To see the image: type in your browser: >> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >> change / in path to \ if on windows? >> >> Regards, >> -- ______________________________________ >> Vincent Schut >> Sarvision B.V. >> Wageningen, The Netherlands >> www.sarvision.com >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From andalba@tiscalinet.it Wed Jul 2 23:25:28 2003 From: andalba@tiscalinet.it (Andrea Albano) Date: Thu, 3 Jul 2003 00:25:28 +0200 Subject: [Mapserver-users] Problem with setFilter Message-ID: <001401c340e8$d7fbce60$9e7f0a3e@homepc> Hello everyone. I have a strange problem in using setFilter function in PHP-Mapscript 3.6. I am trying to build an interface that allow the user to set a filter for every layer of a Map: a simple html page help the user to build the filter expression, then this expression is saved in METADATA section of this layer in a entry called FILTER_EXPR: $oLayer->setMetaData("FILTER_EXPR", $szFiltExp); Then, before drawing the map, I loop through all the layers and check if the current layer have a filter; if so i retrive it: $szFiltExp1 = $oLayer->getMetaData("FILTER_EXPR"); With this variable, that represent my filter expression, I try to filter the layer: $oLayer->setFilter($szFiltExp1); (here var_dump($szFiltExp1) ; return string(19) "('[STATE]'='ITALY')" and this seems correct!) But this NEVER WORKS!!! The layer will be empty!!! And almost incredible... if I explicitly set the exactly same string via code.. WORKS!!! $szFiltExp2 = "('[STATE]'='ITALY')"; $oLayer->setFilter($szFiltExp2); I've tried almost everything: string function like eval, var_export, stripslashes,... other syntax: like $oLayer->setFilter("\"$szFiltExp1\""); single quote string like '(\'[STATE]\'=\'ITALY\')'; but nothing, nothing, nothing... Where is the problem: PHP or mapscript setFilter? And how really treat his parameter the setFilter function? Thanks in advance. Andrea Albano PS : sorry for my poor english! From franck@sopac.org Wed Jul 2 23:48:21 2003 From: franck@sopac.org (Franck Martin) Date: 03 Jul 2003 10:48:21 +1200 Subject: [Mapserver-users] MS v4.0b msLoadMap grabage ? In-Reply-To: <64FC1B3E23F04C4E931EE3F6D809FF30A923@div-mx02.DIVESTCO.COM> References: <64FC1B3E23F04C4E931EE3F6D809FF30A923@div-mx02.DIVESTCO.COM> Message-ID: <1057186100.3065.4.camel@localhost> --=-Gzo23S1QiYKbTgGxebPm Content-Type: text/plain Content-Transfer-Encoding: 7bit I have just compiled MS v4.0b (from download) and when I use shp2img with a map file that was working in v3.3.6 I get msLoadMap(): unable to access file(garbage) and it resets my terminal with some garbage... looks like an overflow problem of some sort... I compiled with: ./configure --with-proj --with-gdal --with-ogr --with-wms --with-php=/usr/include/php --without-tiff Any idea? -- Franck Martin SOPAC --=-Gzo23S1QiYKbTgGxebPm Content-Type: text/html; charset=utf-8 I have just compiled MS v4.0b (from download) and when I use shp2img with a map file that was working in v3.3.6 I get msLoadMap(): unable to access file(garbage) and it resets my terminal with some garbage... looks like an overflow problem of some sort...

I compiled with:
./configure --with-proj --with-gdal --with-ogr --with-wms --with-php=/usr/include/php --without-tiff

Any idea?
--
Franck Martin <franck@sopac.org>
SOPAC
--=-Gzo23S1QiYKbTgGxebPm-- From Timothy.Mackey@ga.gov.au Thu Jul 3 01:45:40 2003 From: Timothy.Mackey@ga.gov.au (Timothy.Mackey@ga.gov.au) Date: Thu, 3 Jul 2003 10:45:40 +1000 Subject: [Mapserver-users] Oracle Spatial support for labels and queries Message-ID: Hi all, Does anyone know if there are plans to extend the OracleSpatial support to include labels and queries, etc? The current functionality is pretty limited at the moment without this. Tim Mackey Webmaster Geoscience Australia timothy.mackey@ga.gov.au http://www.ga.gov.au From ldm_ar@speedy.com.ar Thu Jul 3 03:03:27 2003 From: ldm_ar@speedy.com.ar (Lautaro Diego Mosquera) Date: Wed, 02 Jul 2003 23:03:27 -0300 Subject: [Mapserver-users] problem with mapserv, w2k and iis Message-ID: <001501c34107$4dafcfd0$0100a8c0@ideafix> This is a multi-part message in MIME format. --Boundary_(ID_eRSGvJ3KU1ipvvOnpqDVPA) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Hola a todos Tengo problemas con la generacion de imagenes desde el mapserv, nunca pude generar imagenes. Cuales son los permisos que tengo que darles al mapserv.exe? Como lo tengo que configurar? Ya lei varios articulos sobre los permisos, pero no me funciona. Agradeceria ayuda. Desde ya muchas gracias. Lautaro --Boundary_(ID_eRSGvJ3KU1ipvvOnpqDVPA) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Hola a todos
 
Tengo problemas con la generacion de imagenes desde el mapserv, nunca pude generar imagenes. Cuales son los permisos que tengo que darles al mapserv.exe? Como lo tengo que configurar?
Ya lei varios articulos sobre los permisos, pero no me funciona.
 
Agradeceria ayuda.
Desde ya muchas gracias.
Lautaro
--Boundary_(ID_eRSGvJ3KU1ipvvOnpqDVPA)-- From morissette@dmsolutions.ca Thu Jul 3 03:52:39 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 02 Jul 2003 22:52:39 -0400 Subject: [Mapserver-users] Problem with setFilter References: <001401c340e8$d7fbce60$9e7f0a3e@homepc> Message-ID: <3F039A77.4D968745@dmsolutions.ca> I didn't think you needed the quotes around the [STATE] field name. Did you try removing the quotes around the field name? e.g. $oLayer->setFilter("([STATE] = 'ITALY')"); Daniel Andrea Albano wrote: > > Hello everyone. > > I have a strange problem in using setFilter function in PHP-Mapscript 3.6. > I am trying to build an interface that allow the user to set a filter for > every layer of a Map: a simple html page help the user to build the filter > expression, then this expression is saved in METADATA section of this layer > in a entry called FILTER_EXPR: > > $oLayer->setMetaData("FILTER_EXPR", $szFiltExp); > > Then, before drawing the map, I loop through all the layers and check if the > current layer have a filter; if so i retrive it: > > $szFiltExp1 = $oLayer->getMetaData("FILTER_EXPR"); > > With this variable, that represent my filter expression, I try to filter the > layer: > > $oLayer->setFilter($szFiltExp1); > (here > var_dump($szFiltExp1) ; > return string(19) "('[STATE]'='ITALY')" and this seems correct!) > > But this NEVER WORKS!!! The layer will be empty!!! > And almost incredible... if I explicitly set the exactly same string via > code.. WORKS!!! > > $szFiltExp2 = "('[STATE]'='ITALY')"; > $oLayer->setFilter($szFiltExp2); > > I've tried almost everything: > string function like eval, var_export, stripslashes,... > other syntax: like $oLayer->setFilter("\"$szFiltExp1\""); > single quote string like '(\'[STATE]\'=\'ITALY\')'; > but nothing, nothing, nothing... > > Where is the problem: PHP or mapscript setFilter? > And how really treat his parameter the setFilter function? > > Thanks in advance. > Andrea Albano > > PS : sorry for my poor english! > From pramsey@refractions.net Thu Jul 3 04:19:00 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Wed, 02 Jul 2003 20:19:00 -0700 Subject: [Mapserver-users] Oracle Spatial support for labels and queries In-Reply-To: References: Message-ID: <3F03A0A4.2070307@refractions.net> Hi Tim, We "plan" on unifying the DB data sources and providing some common semenatics and capabilities between them, as well as adding some new ones. However you may find that our schedule (when we get around to it) does not meet yours (right now?). Offering to fund your particular required enhancements, even partially, can go along way to getting what you want, when you want it. Paul Timothy.Mackey@ga.gov.au wrote: > Hi all, > > Does anyone know if there are plans to extend the OracleSpatial > support to include labels and queries, etc? > > The current functionality is pretty limited at the moment without > this. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From Dean Taylor" Hello all, I apologise if this has been covered before but I have searched the archives and can not find anything recent. Basically what I want to do is get a Mapscript application working with IIS without resorting to having to install PHP or perl and preferably without needing a java engine installed either. The Mapscript application will basically read from catalogue and present the maps. So - Is there a COM component around that can be used within ASP. the archives suggest a demand for, and some work being completed towards an ActiveX component bit this seems to have petered out. (What happened?) Does anybody have any compiled JAVA components to work on windows, with the precompiled Mapserver Binaries from the mapserver site ? Has anybody successfully compiled them using Borland C++ (Command Line)? Am I setting myself up for a fall suggesting that I will have a go at creating them. (I am not a C/C++ Programmer but have done a reasonable amount of programming in other languages). Any advice will be appreciated. Thanks -------------------------------------------- Dean Taylor Data Systems Engineer Karjeni Pty Ltd www.karjeni.com.au -------------------------------------------- From flavio@tydac.ch Thu Jul 3 07:24:18 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Thu, 03 Jul 2003 08:24:18 +0200 Subject: FW: [Mapserver-users] JavaScript security In-Reply-To: <3F033B27.5060407@frw.uva.nl> References: <000001c340be$56173030$d701a8c0@matt> <3F033B27.5060407@frw.uva.nl> Message-ID: hi jan to continue off topic: Bill Brysons "Neither Here Nor There: Travels in Europe" is extremely funny about german as a language, german food and germans at all (and makes a lot of fun of all other "old europeans") ... WARNING: do not read in public, they might think you are a bit nuts if you just kill yourself laughing. ciao flavio From braulioen@ono.com Thu Jul 3 07:34:44 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Thu, 03 Jul 2003 08:34:44 +0200 Subject: [Mapserver-users] Re: Problem with setFilter Message-ID: <6df2c6a1bc.6a1bc6df2c@ono.com> Andrea, Your test (the attribute with double quotes): $szFiltExp2 = "(\"[STATE]\"='ITALY')"; Braulio. From braulioen@ono.com Thu Jul 3 07:35:38 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Thu, 03 Jul 2003 08:35:38 +0200 Subject: [Mapserver-users] queryByAttributes in PHP/Mapscript 3.7 Message-ID: <7044b6caf6.6caf67044b@ono.com> Hi at all, Somebody could send to me to some example of use of the function queryByAttributes in PHP/Mapscript 3.7 using several attributes? An example how to pass the parameters. Thanks. Braulio. From braulioen@ono.com Thu Jul 3 07:36:12 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Thu, 03 Jul 2003 08:36:12 +0200 Subject: [Mapserver-users] Problem with ECW in PHP/Mapscript 3.7 Message-ID: <70650701ac.701ac70650@ono.com> Hello, I've begun to use the version 3.7 of PHP/Mapscript and I have a problem. I was using the version 3.6 and I could see a layer RASTER and now I can't, this layer now no longer is seen. This layer is a ECW image, we have a Image Web Server and the configuration of the layer in the MAP file is: LAYER NAME ortofoto TYPE RASTER STATUS ON DATA "ecwp://myserver/myimage.ecw" END This version is downloaded of DM Solutions (mapserver-3.7-dev-win32- php4.3.0-gd2.zip), I've decompress the ECW dll's, although they were the same ones that already I had, and I have been with this problem. To what east problem when changing of version could be due? Thanks in advance. Braulio. From mschulz@webgis.de Thu Jul 3 08:39:24 2003 From: mschulz@webgis.de (Michael Schulz) Date: Thu, 03 Jul 2003 09:39:24 +0200 Subject: [Mapserver-users] python mapscript References: <2C68DC23-ACA7-11D7-BB35-000393B98B56@frii.com> Message-ID: <3F03DDAC.1891E21B@webgis.de> Hi Sean, thanks for your help. I tried your new pymodule.i and i can catch the error in the python shell, but if i try it in combination with zope-zmapserver it is not working. The zope process still gets killed. I thought along the same lines as you yesterday and changed pymodule.i according to your second suggestion: -- snip line 186 // Sidestep the annoying MS_IOERR raised by msSearchDiskTree() // in maptree.c when a layer's shapetree index can't be found if ((ms_error->code != MS_NOERR) && (ms_error->code != -1) && !((ms_error->code == MS_IOERR) && (strcmp(ms_error->routine, "msSearchDiskTree()") == 0)) && !((ms_error->code == MS_NOTFOUND) && (strcmp(ms_error->routine, "msQueryByPoint()") == 0))) This works, the error is not raised when no records are found and thus zope no longer gets killed. Although i don't understand why i can't catch this error e.g. with a try except block? Cheers, Michael Sean Gillies schrieb: > Michael, > > I think this is probably an issue with MapServer's C library. > Am looking into it now to see what happens in msQueryByPoint. > I agree that msQueryByPoint should not raise an error in the > case of no records found by an otherwise proper query. > > Another thing we could do is to evade the error in MapScript's > error handler like we are doing with the error that is raised > when no shapefile tileindex is present. Maybe this is the > best way for now, and push to change msQuery* behavior for > MapServer 4.1. > > cheers, > Sean > > On Wednesday, July 2, 2003, at 09:14 AM, Michael Schulz wrote: > > > Hi, > > > > i have a question concerning the new error handling code in python > > mapscript. While it is very good that mapscript now throws real > > meaningful exceptions for a lot of errors, it is somewhat annyoing that > > e.g. queryByPoint also gives an error when no records where found. What > > would be the correct way to change this behaviour? > > A bit more background information why this behaviour is annoying me > > (for > > those using python mapscript in the zmapserver environment): i am > > working on implementing query mechanisms in zmapserver, and in the > > combination zope-zmapserver-python/mapscript it seems, that i am not > > able to catch this exception correctly. Even worse, the zope process > > gets killed (although an error should be raised, the zope process > > segfaults). Well, as you might assume this is not the intended > > behaviour. Hmm, any ideas, where to start looking? > > > > TIA, Michael > > > -- > Sean Gillies > sgillies at frii dot com > http://www.frii.com/~sgillies > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de From bear@prometheus.org.yu Thu Jul 3 08:53:47 2003 From: bear@prometheus.org.yu (Attila Csipa) Date: Thu, 3 Jul 2003 09:53:47 +0200 Subject: [Mapserver-users] Problem with setFilter In-Reply-To: <001401c340e8$d7fbce60$9e7f0a3e@homepc> References: <001401c340e8$d7fbce60$9e7f0a3e@homepc> Message-ID: <200307030953.47868.attila@prometheus.org.yu> On Thursday 03 July 2003 00:25, Andrea Albano wrote: > $oLayer->setFilter($szFiltExp1); > But this NEVER WORKS!!! The layer will be empty!!! > And almost incredible... if I explicitly set the exactly same string via > code.. WORKS!!! > $szFiltExp2 = "('[STATE]'='ITALY')"; > $oLayer->setFilter($szFiltExp2); > I've tried almost everything: > string function like eval, var_export, stripslashes,... > other syntax: like $oLayer->setFilter("\"$szFiltExp1\""); > single quote string like '(\'[STATE]\'=\'ITALY\')'; > but nothing, nothing, nothing... > Where is the problem: PHP or mapscript setFilter? > And how really treat his parameter the setFilter function? This might be a manifestation of bug #242 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=242 From nwoe@privat.utfors.se Thu Jul 3 09:03:46 2003 From: nwoe@privat.utfors.se (=?iso-8859-1?Q?niklas_w=F6rmann?=) Date: Thu, 3 Jul 2003 10:03:46 +0200 Subject: [Mapserver-users] plugging in a template to get cgi back References: <000001c340be$56173030$d701a8c0@matt> <3F033B27.5060407@frw.uva.nl> Message-ID: <002001c34139$a9237380$8300a8c0@big> Hi! I am trying to send some cgi parameters to the mapserver cgi, and get some useful info back.... what i am interested in is primarily getting the [MAP] filename, seems i should use a template file for this, but i have no idea where to put it, or how to use it for that matter tia niklas wörmann ävlsjö sweden From schut@sarvision.com Thu Jul 3 09:08:36 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 3 Jul 2003 10:08:36 +0200 Subject: [Mapserver-users] adding RASTER Layer In-Reply-To: <200307021550.35079.bmurch@marine.usf.edu> References: <200307021515.49112.bmurch@marine.usf.edu> <3F03358E.2000302@nacse.org> <200307021550.35079.bmurch@marine.usf.edu> Message-ID: <200307031008.36182.schut@sarvision.com> Brock, don't know if it helps, but you might try to recompile your mapserver with --without-tiff to force it to use GDAL's tiff reading instead of libtiff. GDAL's tiff reading capabilities extend the normal one with all kinds of geotiff features, etc. Cheers, Vincent. On Wednesday 02 July 2003 21:50, Brock Murch wrote: > Dylan: > > Thanks, but no luck. Whether I comment out the #OFFSITE line, or put in > OFFSITE 0 0 0 still gives me no image other that the vertival border I > spoke of earlier. > > Brock > > On Wednesday 02 July 2003 3:42 pm, Dylan Keon wrote: > > Brock, > > > > Syntax for OFFSITE changed in 4.0. OFFSITE now takes an RGB value > > instead of a single class index value. So, for example, if you're > > trying to make black pixels transparent you would now use "OFFSITE 0 0 > > 0" instead of "OFFSITE 0" (assuming class 0 was assigned to black > > pixels). > > > > You could first try commenting out just the OFFSITE line to see if you > > get anything... > > > > --Dylan > > > > Brock Murch wrote: > > > Lo all: > > > I seem to have stumbled into a problem. I am working throught the > > > tutorial and have had much success, however, I can't seem to make the > > > s2ex3 raster layer work. If I comment out the: > > > > > > #LAYER # Shaded Relief Raster > > > # NAME "relief" > > > # DATA "raster/shdrlfi020g_ugl.tif" > > > # STATUS DEFAULT > > > # TYPE RASTER > > > # OFFSITE 0 > > > #END > > > > > > it works fine. > > > > > > However, if the layer is place I get no image, just a small vertical > > > line (probably the border). I am using the newest version of mapserver. > > > > > > mapserv -v > > > MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 > > > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > gdal-config --formats > > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted > > > mem jdem envisat elas fit vrt usgsdem l1b nitf bmp hdf4 gif jpeg png > > > > > > I have tried it with my own data too. png format with a png world file > > > following the above map file format with the same results. > > > > > > What am I missing? I'm not sure what to try next. Any thoughts would be > > > greatly appreciated. > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From bwragg@tpg.com.au Thu Jul 3 09:28:06 2003 From: bwragg@tpg.com.au (Benjamin Wragg) Date: Thu, 3 Jul 2003 17:58:06 +0930 Subject: [Mapserver-users] [SUM] Postgis Transform Problem In-Reply-To: <200307020942.14605.schut@sarvision.com> Message-ID: <004301c3413d$086d7ef0$0a00a8c0@mapping12> Thankyou to Paul Ramsey, Vincent Schut from the Mapserver list and Ed McNierney and Gerald Evenden from the proj4 list for their help on this one. My lack of knowledge of projections was really the problem as converting 90 or -90 lat is impossible with the Mercator projection. My past use of ArcView 8 convinced me it was possible but it seems ESRI have some "idiot protection" in their projection engine which must alter the lat value if it's to great. Thanks again for your help Cheers, Benjamin -----Original Message----- From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Vincent Schut Sent: Wednesday, 2 July 2003 5:12 PM To: bwragg@tpg.com.au; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] FW: [postgis-users] Postgis Transform Problem Benjamin, my 2c on latlon and mercator: tmerc is 'transverse mercator', as used in the abreviation 'UTM': Universal Transverse Mercator. 'Exercising tmerc at the boundaries': in latlon systems (which are essentially unprojected, though they are sometimes called latlon or geographic 'projections'), the north and south pole are single points. In projections like (transverse) mercator however, the north and south pole are either not there (they fall outside the valide projection area) or can be regarded as being stretched till these 'points' occupy the entire northern and southern boundary line of the projection of the entire earth. You might better understand this if you look at these projections as wrapping the earth in a vertical cilinder and projecting each point of the sphere of the earth onto its nearest point on the surface of the cilinder. There are only 2 points that are undefined in this, because they are similarly equal in distance to more than one point, to be specific an entire line: the most upper and lower points of the spere, or any latlon point that has a latitude of 90 or -90. Try cs2cs with any other value as lon, and 90 or -90 as lat, and it will give you the same non-output as 180, 90, because all these coordinates are the same point: north or south pole. I don't know how arcview does it, but it must be some workaround of the normal projection formula, cause that will not give you one single point for these coordinates. It will either give you a line, or a 'undefined' result. On Wednesday 02 July 2003 00:46, Benjamin Wragg wrote: > 179.99 and 89.99 work OK. The problem is that I receive on a regular > basis minx,miny,maxx,maxy coordinates which define the area of a > hardcopy map boundary. Since many hardcopy maps are made of the entire > earth, the coordinates sent are -180,-90,180,90. I then create PostGIS > features from these coordinates. > > If I project the data in ArcView 8 I get something like the attached > image. The purple/pink is a box I defined as -180,-90,180,90 using > WGS84 and then projected it to Mercator. I was hoping to achieve > similar using PostGIS. > > What did you mean by 'exercising tmerc at the boundaries'? 'tmerc'? > > Thanks, > > Benjamin > > (I removed the image for the list. If you need it let me know) > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey@refractions.net] > Sent: Tuesday, 1 July 2003 11:57 PM > To: bwragg@tpg.com.au > Subject: Re: FW: [postgis-users] Postgis Transform Problem > > > cs2cs exercises proj4 which is what postgis uses, so the test is > equivalent. You realize that you are exercising tmerc at the > boundaries, right? I do not know what the correct behavior should be > at that coordinate. What happens when you try 179.99 89.99? > > On Monday, June 30, 2003, at 10:53 PM, Benjamin Wragg wrote: > > I tried the cs2cs utility. I think I'm passing the correct > > paramaters. If I enter the following: > > > > cs2cs +proj=latlong +ellps=WGS84 +to +proj=merc +lon_0=150.0 > > 180 90 > > > > I get > > > > * * 0.00 > > > > If I type any other coordinate I get a figure back. So is the cs2cs > > utility what Postgis uses to project it's coords? If it does, it > > seems > > > > this is whats causing the problem. > > > > Thanks, > > > > Benjamin > > > > -----Original Message----- > > From: postgis-users-bounces@postgis.refractions.net > > [mailto:postgis-users-bounces@postgis.refractions.net] On Behalf Of > > Paul Ramsey > > Sent: Wednesday, 25 June 2003 10:55 PM > > To: bwragg@tpg.com.au; PostGIS Users Discussion > > Subject: Re: [postgis-users] Postgis Transform Problem > > > > > > Those coordinates are right on the edge of the global plane, could > > be hitting the edge of validity in the reprojection library. Try > > testing the same stuff directly using the proj4 cs2cs utility. > > > > On Tuesday, June 24, 2003, at 10:35 PM, Benjamin Wragg wrote: > >> I'm having a problem with the transform function in Postgis. If I > >> run the following query: > >> > >> select transform(GeometryFromText('MULTIPOLYGON(((112 -45 ,112 -10 > >> ,155 -10 ,155 -45,112 -45)))',4326),54004) > >> > >> I get: > >> > >> SRID=54004;MULTIPOLYGON(((12467782.9688466 > >> -5591295.91855339,12467782.9688466 > >> -1111475.10285223,17254521.0729574 > >> -1111475.10285223,17254521.0729574 -5591295.91855339,12467782.9688466 > >> -5591295.91855339))) > >> > >> But if I do: > >> > >> select transform(GeometryFromText('MULTIPOLYGON(((-180 -90 ,-180 90 > >> ,180 90 ,180 -90,-180 -90)))',4326),54004) > >> > >> I get: > >> > >> Error: transform: couldn't project polygon > >> Warning: Error occurred while executing PL/pgSQL function transform > >> Warning: line 2 at return > >> > >> Any ideas why? I turned the postgresql log level to debug5 to see > >> if I > >> > >> could get more detailed errors, but it's exactly the same error. > >> I'm running postgresql 7.3.2, postgis 0.7.5 and proj 4.4.7 > >> > >> Thanks, > >> > >> Benjamin Wragg > > > > Paul Ramsey > > Refractions Research > > Email: pramsey@refractions.net > > Phone: (250) 885-0632 > > > > > > _______________________________________________ > > postgis-users mailing list postgis-users@postgis.refractions.net > > http://postgis.refractions.net/mailman/listinfo/postgis-users > > Paul Ramsey > Refractions Research > Email: pramsey@refractions.net > Phone: (250) 885-0632 > > _______________________________________________ > Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From nwoe@privat.utfors.se Thu Jul 3 09:29:57 2003 From: nwoe@privat.utfors.se (=?iso-8859-1?Q?niklas_w=F6rmann?=) Date: Thu, 3 Jul 2003 10:29:57 +0200 Subject: [Mapserver-users] plugging in a template to get cgi back References: <000001c340be$56173030$d701a8c0@matt> <3F033B27.5060407@frw.uva.nl> <002001c34139$a9237380$8300a8c0@big> Message-ID: <002601c3413d$4c929070$8300a8c0@big> well i have finally figured a way to do it, but it feels really clumsy. i set up at template file (html form stuff), reference that file in my map file, send the data via get to the server, and get the "populated" template file back.(this is where mapserver magically has replaced all my [cgi-variable]s with the real stuff. i then have to parse the html file to look for the variables. there must be an easier way to do this.... regards niklas wörmann älvsjö sweden From s.wiegand@kdvz.de Thu Jul 3 09:40:48 2003 From: s.wiegand@kdvz.de (Stefan Wiegand) Date: Thu, 3 Jul 2003 10:40:48 +0200 Subject: [Mapserver-users] Mapserver WMS client and proxy server Message-ID: This is a multipart message in MIME format. --=_alternative 002FC942C1256D58_= Content-Type: text/plain; charset="us-ascii" Hello Ed I have tried to connect to a WMS Mapserver from home and everything works fine. When I type in the WMS request, I get the map and when I build a workaround by dyn layers via transparent image above the mapserver image all works fine. It works fine, because the browsers settings refer to the proxy, but the cgi does not, I think. My sys admin told me, he can recognize, that the mapserver cgi tries a direct connection to the WMS client. This is, out of security reasons, not allowed for us. Best regards Stefan Wiegand Mail: s.wiegand@kdvz.de www.kdvz.de --=_alternative 002FC942C1256D58_= Content-Type: text/html; charset="us-ascii"
Hello Ed

I have tried to connect to a WMS Mapserver from home and everything works fine. When I type in the WMS request, I get the map and when I build a workaround by dyn layers via transparent image above the mapserver image all works fine. It works fine, because the browsers settings refer to the proxy, but the cgi does not, I think. My sys admin told me, he can recognize, that the mapserver cgi tries a direct connection to the WMS client. This is, out of security reasons, not allowed for us.

Best regards

Stefan Wiegand
Mail: s.wiegand@kdvz.de
www.kdvz.de --=_alternative 002FC942C1256D58_=-- From jhart@frw.uva.nl Thu Jul 3 10:13:56 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Thu, 03 Jul 2003 11:13:56 +0200 Subject: FW: [Mapserver-users] JavaScript security In-Reply-To: References: <000001c340be$56173030$d701a8c0@matt> <3F033B27.5060407@frw.uva.nl> Message-ID: <3F03F3D4.5010903@frw.uva.nl> Agreed. I literally had to stop reading that in the train, because people stared at me. BTW Bill Bryson is even funnier in his travel book on the US, "The Lost Continent". I recognized quite a lot of it when I travelled around a bit after the conference. Jan Flavio Hendry wrote: > hi jan > > to continue off topic: Bill Brysons "Neither Here Nor There: Travels in > Europe" is extremely funny about german as a language, german food and > germans at all (and makes a lot of fun of all other "old europeans") ... > WARNING: do not read in public, they might think you are a bit nuts if > you just kill yourself laughing. > > ciao > flavio > > From Michael.Smith@erdc.usace.army.mil Thu Jul 3 11:15:52 2003 From: Michael.Smith@erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 3 Jul 2003 06:15:52 -0400 Subject: [Mapserver-users] Oracle Spatial Message-ID: <048FBD219330D211B47000A0C9B3BAFD03CD197A@crl02.crrel.usace.army.mil> Having the SDO_POINT = NULL is correct if this is a non point shapefile. If the SRID is NULL don't include it in the data statement Use DATA "GEOMETRY FROM OILWELLS" You're problem is the Connecttion statement (CONNECTION "sdb/sdb@10.0.50.30") The correct format is user/password@tnsname You need to define a tnsname that points to the correct host, port and sid. There are various tools to do this (Oracle Net Manager, edit the tnsnames.ora) In the tnsnames.ora file you would have TNSNAME.DOMAIN.COM = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.50.30)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = your_service_name_here) ) ) Then you connection string would be CONNECTION "sdb/sdb@tnsname" Mike Smith email: michael.smith@erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Wednesday, July 02, 2003 5:50 PM To: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial After using the oracle tools to convert my shapefile into an oracle spatial format, this is what I have: SQL> select * from oilwells where gid = 1; GID ---------- GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- 1 SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY( -112.08855, 48.9998283, -112.08855, 48.9998283)) SQL> Notice that the SDO_POINT(X, Y, Z) column is NULL. Can mapserver handle this case. I guess the otn utilities utilize the last two columns. Also note that the SRID is null. When i draw my image, I get the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map definition for this layer. LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE oraclespatial CONNECTION "sdb/sdb@10.0.50.30" DATA "GEOMETRY FROM OILWELLS USING SRID NULL" # DUMP TRUE MAXSCALE 20 SYMBOLSCALE 2 CLASS SYMBOL 3 SIZE 12 MAXSIZE 28 MINSIZE 4 END END I am using mapserver 3.6.6 precompiled with oracle spatial support from the mapserver downloads page. Any help would be greatly appreciated. Thanks Zamil -----Original Message----- From: Zamil Murji Sent: Wednesday, July 02, 2003 2:36 PM To: bartvde@xs4all.nl; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Thanks Bart for the quick reply... I was able to convert my shapefiles into oracle spatial format using some tools on otn. Using those tools they insert NULL as the SRID. Will this cause grief? According to the WIKI you had to specify a SRID otherwise you got a mapserver error. Is this correct? Is there any way to see what query mapserver will be running? Like a log file or something of the sort. In the connection string, does service refer to the ip address? Thanks in advance, Zamil -----Original Message----- From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] Sent: Wednesday, July 02, 2003 12:22 PM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Oracle Spatial Hi Zamil, otn (Oracle technology network) is the best site for Oracle information. Oracle itself has a tool to import shapefiles into Oracle Spatial. http://otn.oracle.com (you can register for free) The easiest to use is the built-in Oracle Spatial support. To use the support through OGR, you have to compile OGR against the Oracle client library. See also the mapserver wiki Oracle Spatial page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji wrote: > Hello list, > > I want to use MapServer to draw an Oracle Spatial layer, however, I have > never used Oracle Spatial. I have some questions I am sure you will be > able to answer. > > 1) What utilities are available to import a shapefile into an Oracle > Spatial database? Where can I download them from? 2) Need to know some > good sites on how to setup Oracle 8i with the Spatial component, and I > need a quick tutorial on how to create a table, alter a table, insert and > select from that table. Any good sites? > 3) I read on the newsgroup that there are two ways to go about this. One > is to use the built in oracle spatial support and the other is to use > ogr. I am running Apache on a windows 2000 box, what way is the best to > go, easiest to setup? > > Thanks for your help > Zamil > > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Wednesday, June 25, 2003 8:44 AM > To: mapserver-users@lists.gis.umn.edu > Cc: niklas "wörmann > Subject: Re: [Mapserver-users] running v4 beta as a command line tool > > > I've tested on MapServer 3.6.4 for Windows, using: > > $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > > myresult.gif > > but if you try to open "myresult.gif" it crash... > > so I opened this file with a text editor and deleted the first two > lines(the headers), then it works! > > regards > > Eduardo Patto Kanegae > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > > > On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut > enscreveu: > >> De: Vincent Schut >> Data: Wed, 25 Jun 2003 14:43:41 +0200 >> Para: niklas wörmann , > users@lists.gis.umn.edu> >> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >> >> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >> > Hi! >> > i am trying to track down the reason mapserver isn´t working on my >> windows >> > 2000 server. >> > >> > i remember seeing somewhere that it was indeed possible to run >> mapserver as >> > a command line tool, specifying a map file and an output file >> > >> > anyone know the syntax for this? >> >> On linux: >> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >> This will output headers + image data to stdout (on linux). Probably on >> windows your executable is not named mapserv but something like >> mapserv.exe? And use \ instead of / I think. >> >> you cannot just save the output as image file because the headers are in >> the output too. >> But you can see if it outputs something (lots of ascii: image), or gives >> an error. >> To see the image: type in your browser: >> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >> change / in path to \ if on windows? >> >> Regards, >> -- ______________________________________ >> Vincent Schut >> Sarvision B.V. >> Wageningen, The Netherlands >> www.sarvision.com >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Irvan@pln-jabar.co.id Thu Jul 3 11:34:27 2003 From: Irvan@pln-jabar.co.id (Irvan Kristianto) Date: Thu, 3 Jul 2003 17:34:27 +0700 Subject: [Mapserver-users] mapinfo .tab on mapserver Message-ID: <4876C605FBF6D611BF48000629132BCB1F8C35@DISJABARMAIL> hello guys, after has been successfully deploy mapserver on shapefile, i tried it too on mapinfo *.tab. but ... it didn't work .... :( (sorry ... newbie) please give me some sugestion. thanks. mapserver -v : MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPOR TS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=P OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE here my map file... MAP NAME "DEMO" STATUS ON EXTENT 463549.689692 4641034.982725 685728.962267 4820458.629079 SIZE 400 400 SHAPEPATH "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data" IMAGECOLOR 255 255 255 UNITS METERS WEB MINSCALE 20000 MAXSCALE 50000000 IMAGEPATH "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/tmp/ms_tmp/" IMAGEURL "/gis/maplab/tmp/ms_tmp/" END QUERYMAP STATUS ON SIZE 200 200 COLOR 255 0 0 STYLE HILITE END SCALEBAR STATUS ON COLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS METERS INTERVALS 1 SIZE 80 2 STYLE 1 LABEL SIZE tiny COLOR 255 255 255 END END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LAYER NAME "wistate00" STATUS ON CONNECTIONTYPE OGR CONNECTION "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_countr y/Euskalerria.TAB,Euskalerria" TYPE POLYGON STYLEITEM "AUTO" CLASS NAME "wistate00" COLOR 250 175 25 OUTLINECOLOR 255 0 0 END END END From sarawut@ait.ac.th Thu Jul 3 11:55:21 2003 From: sarawut@ait.ac.th (Sarawut Ninsawat) Date: Thu, 03 Jul 2003 17:55:21 +0700 Subject: [Mapserver-users] Call WMS from same PC. Message-ID: <5.1.1.6.2.20030703175106.00aa53a8@mail.ait.ac.th> Dear all I setup two map page(difference map.phml,php3) in same machine. I try to use WMS connection from one page to another but it's not work. But if I use another computer same parameter as shown below (mapserv WMS client) to connect to Server. It's fine. LAYER NAME "color06" METADATA wms_title "Tests" wms_srs "EPSG:32647" END TYPE RASTER STATUS off CONNECTIONTYPE WMS CONNECTION "http://203.159.10.13/cgi-bin/thaiwms?VERSION=1.1.0&LAYERS=LANDSAT&Format=png" projection "init=EPSG:32647" end END From =?ISO-8859-1?B?yOv8/yDALiDP8OD17uI=?= Thu Jul 3 12:19:36 2003 From: =?ISO-8859-1?B?yOv8/yDALiDP8OD17uI=?= (=?ISO-8859-1?B?yOv8/yDALiDP8OD17uI=?=) Date: Thu, 3 Jul 2003 15:19:36 +0400 Subject: [Mapserver-users] mapinfo .tab on mapserver In-Reply-To: <4876C605FBF6D611BF48000629132BCB1F8C35@DISJABARMAIL> References: <4876C605FBF6D611BF48000629132BCB1F8C35@DISJABARMAIL> Message-ID: <15725914625.20030703151936@ggc.nnov.ru> Try to use this: STATUS default CONNECTION "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_country/Euskalerria.TAB" IK> hello guys, IK> after has been successfully deploy mapserver on shapefile, i tried it too on IK> mapinfo *.tab. IK> but ... it didn't work .... :( IK> (sorry ... newbie) IK> please give me some sugestion. IK> thanks. IK> mapserver -v : IK> MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP IK> SUPPOR IK> TS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 IK> INPUT=P IK> OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE IK> here my map file... IK> MAP IK> NAME "DEMO" IK> STATUS ON IK> EXTENT 463549.689692 4641034.982725 685728.962267 4820458.629079 IK> SIZE 400 400 IK> SHAPEPATH "E:/Program Files/Apache IK> Group/Apache/htdocs/gis/maplab/projects/apps/demo/data" IK> IMAGECOLOR 255 255 255 IK> UNITS METERS IK> WEB IK> MINSCALE 20000 IK> MAXSCALE 50000000 IK> IMAGEPATH "E:/Program Files/Apache IK> Group/Apache/htdocs/gis/maplab/tmp/ms_tmp/" IK> IMAGEURL "/gis/maplab/tmp/ms_tmp/" IK> END IK> QUERYMAP IK> STATUS ON IK> SIZE 200 200 IK> COLOR 255 0 0 IK> STYLE HILITE IK> END IK> SCALEBAR IK> STATUS ON IK> COLOR 255 255 255 IK> IMAGECOLOR 255 255 255 IK> UNITS METERS IK> INTERVALS 1 IK> SIZE 80 2 IK> STYLE 1 IK> LABEL IK> SIZE tiny IK> COLOR 255 255 255 IK> END IK> END IK> SYMBOL IK> NAME "circle" IK> TYPE ELLIPSE IK> FILLED TRUE IK> POINTS IK> 1 1 IK> END IK> END IK> LAYER IK> NAME "wistate00" IK> STATUS ON IK> CONNECTIONTYPE OGR IK> CONNECTION "E:/Program Files/Apache IK> Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_countr IK> y/Euskalerria.TAB,Euskalerria" IK> TYPE POLYGON IK> STYLEITEM "AUTO" IK> CLASS IK> NAME "wistate00" IK> COLOR 250 175 25 IK> OUTLINECOLOR 255 0 0 IK> END IK> END IK> END ---------------- Ilya A. Prakhov mailto:prakhov@ggc.nnov.ru From james@danisat.net Thu Jul 3 12:22:26 2003 From: james@danisat.net (James Anderson) Date: Thu, 3 Jul 2003 13:22:26 +0200 Subject: [Mapserver-users] Layer Problem Message-ID: <012901c34155$66c64000$4d570842@beast> This is a multi-part message in MIME format. ------=_NextPart_000_0124_01C34166.250E4E30 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Everybody, I seem to have a big problem ...... I am using mapserver on Red Hat 8 Linux. MapServer version 3.6.3 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = SUPPORTS=3DPROJ SUPPORTS=3DTTF SUPPORTS=3DWMS_SERVER INPUT=3DTIFF = INPUT=3DEPPL7 INPUT=3DJPEG INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE I have many vector layers and some raster layers too. At the moment my = map file has over 100 layers in it. My problem is that when I have = tried adding some more layers, I get the error msLoadMap(): Unknown identifier. Too many layers defined.=20 Now this is a problem as I need to have all these layers. I got so many = layers that its too many to count the exact amount. But this is a = problem, and my project is going to fail if I cannot find a way to get = mapserver to support/accept more layers. Can anyone give me an idea of = what the maximum number of layers is, and how I can go about increasing = the amount of layers that is supported. I have an idea that I am going = to have to recompile the mapserver. Please anybody, Please Help !! Thanks, James. ------=_NextPart_000_0124_01C34166.250E4E30 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
 
Hi Everybody,
 
I seem to have a big problem = ......
I am using mapserver on Red Hat 8=20 Linux.
MapServer version 3.6.3 OUTPUT=3DPNG = OUTPUT=3DJPEG=20 OUTPUT=3DWBMP SUPPORTS=3DPROJ SUPPORTS=3DTTF SUPPORTS=3DWMS_SERVER = INPUT=3DTIFF=20 INPUT=3DEPPL7 INPUT=3DJPEG INPUT=3DOGR INPUT=3DGDAL = INPUT=3DSHAPEFILE
I have many vector layers and some = raster layers=20 too.  At the moment my map file has over 100 layers in it.  My = problem=20 is that when I have tried adding some more layers, I get the = error
 
msLoadMap(): Unknown identifier. Too many layers defined.
 
Now this is a problem as I need to have = all these=20 layers.  I got so many layers that its too many to count the exact=20 amount.  But this is a problem, and my project is going to fail if = I cannot=20 find a way to get mapserver to support/accept more layers.   = Can=20 anyone give me an idea of what the maximum number of layers is, and how = I can go=20 about increasing the amount of layers that is supported.  I = have an=20 idea that I am going to have to recompile the mapserver.   = Please=20 anybody, Please Help !!
 
Thanks,
 
James.
 
------=_NextPart_000_0124_01C34166.250E4E30-- From spencer@dmsolutions.ca Thu Jul 3 12:36:27 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Thu, 03 Jul 2003 07:36:27 -0400 Subject: [Mapserver-users] Layer Problem In-Reply-To: <012901c34155$66c64000$4d570842@beast> References: <012901c34155$66c64000$4d570842@beast> Message-ID: <3F04153B.40807@magma.ca> edit this line in map.h and rebuild mapserver. #define MS_MAXLAYERS 100 /* maximum number of layers in a map file */ Cheers, Paul James Anderson wrote: > > Hi Everybody, > > I seem to have a big problem ...... > I am using mapserver on Red Hat 8 Linux. > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > I have many vector layers and some raster layers too. At the moment my > map file has over 100 layers in it. My problem is that when I have > tried adding some more layers, I get the error > > msLoadMap(): Unknown identifier. Too many layers defined. > > Now this is a problem as I need to have all these layers. I got so many > layers that its too many to count the exact amount. But this is a > problem, and my project is going to fail if I cannot find a way to get > mapserver to support/accept more layers. Can anyone give me an idea of > what the maximum number of layers is, and how I can go about increasing > the amount of layers that is supported. I have an idea that I am going > to have to recompile the mapserver. Please anybody, Please Help !! > > Thanks, > > James. > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From s9646183@sms.ed.ac.uk Thu Jul 3 12:41:52 2003 From: s9646183@sms.ed.ac.uk (AMC Story) Date: Thu, 03 Jul 2003 12:41:52 +0100 (BST) Subject: [Mapserver-users] Problem with Perl Mapscript Message-ID: <1057232512.3f041680c3c11@sms.ed.ac.uk> Hi everyone, Following my question about using JavaScript/MapScript to develop the standard MapServer interface, I've now decided to try to use both, and have got the Perl MapScript module working on our apache server. My problem is that most of the documentation and examples are for PHP MapScript. Having only a list of constructors/methods etc for each object type is helpful to a point, but this doesn't tell me how I should be putting them together to get something to actually work! I've been trying to convert the PHP MapScript by Example HOWTO into perl, using Steve Lime's mapquakes.pl as a guide. My first problem is that perl mapscript doesn't seem to have a direct equivalent of the saveWebImage method. Is this correct? In the absence of such a method, I've been trying to use the saveImage method, but here I seem to be running into problems. If you look at the way I've called the method (see code below), then maybe you could suggest what I'm doing wrong. In the first case (ie. using mapscript::msSaveImage(...)), I get the error message "Type error in argument 1 of msSaveImage. Expected _p_gdImagePtr..." when I run the program at the command line. In the second case, using $image- >saveImage(..), I get the following usage message "Usage: imageObj_saveImage (self,filename,type,transparent,interlace,quality);". This has confused me because this isn't the argument list given in the documentation. If anyone has some simple, step by step examples of how to build up applications using Perl MapScript I'd be really interested in having a look. Many thanks, Ali #!/usr/local/bin/perl -w # #playing around with mapscript # #use mapscript; use CGI qw(:standard); use mapscript; $cgi = new CGI; $map_file = "/usr/local/apache/local-bin/s9646183/mapscript/quakes.map"; $image_path = "/usr/local/apache/htdocs/tmp/"; $image_url = "/tmp/"; $image_id = $$ . time() . ".png"; $map = new mapscript::mapObj($map_file); $image = $map->prepareImage(); $layer = $map->getLayerByName('countries'); $layer->draw($map, $image); mapscript::msSaveImage($image, $image_path.$image_id, $map->{imagetype}, $map-> {transparent}, $map->{interlace}, $map->{imagequality}); #$image->saveImage($image, $image_path.$image_id, $mapscript::MS_PNG, $map-> {transparent}, $map->{interlace}, $map->{imagequality}); print $cgi->header(); print $cgi->start_html(-title=>'Map 1: Perl Mapscript Test'); print "

This is just a test

"; print "

"; print $cgi->end_html(); From schut@sarvision.com Thu Jul 3 12:52:53 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 3 Jul 2003 13:52:53 +0200 Subject: [Mapserver-users] Layer Problem In-Reply-To: <012901c34155$66c64000$4d570842@beast> References: <012901c34155$66c64000$4d570842@beast> Message-ID: <200307031352.53339.schut@sarvision.com> Change the according line ('define MSMAXLAYERS=100' or something similar in the file map.h and recompile mapserver (just run make again will keep the ./configure options you used last time). Don't forget to copy mapserv en eventually php_mapscript.so to their respective install dirs. Cheers, Vincent. On Thursday 03 July 2003 13:22, James Anderson wrote: > Hi Everybody, > > I seem to have a big problem ...... > I am using mapserver on Red Hat 8 Linux. > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I have many vector layers and some raster layers too. At the moment my map > file has over 100 layers in it. My problem is that when I have tried > adding some more layers, I get the error > > msLoadMap(): Unknown identifier. Too many layers defined. > > Now this is a problem as I need to have all these layers. I got so many > layers that its too many to count the exact amount. But this is a problem, > and my project is going to fail if I cannot find a way to get mapserver to > support/accept more layers. Can anyone give me an idea of what the > maximum number of layers is, and how I can go about increasing the amount > of layers that is supported. I have an idea that I am going to have to > recompile the mapserver. Please anybody, Please Help !! > > Thanks, > > James. -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From Gunter.Rieth@stadt.mainz.de Thu Jul 3 13:01:37 2003 From: Gunter.Rieth@stadt.mainz.de (Gunter.Rieth@stadt.mainz.de) Date: Thu, 3 Jul 2003 14:01:37 +0200 Subject: Antwort: Re: [Mapserver-users] mapinfo .tab on mapserver In-Reply-To: <15725914625.20030703151936@ggc.nnov.ru> Message-ID: hi, have also a look on STYLEITEM "AUTO". Have try without it . # STYLEITEM "AUTO" Gruß Gunter Rieth Kommunale Datenzentrale Mainz -Eigenbetrieb der Stadt Mainz- Hechtsheimer Straße 35 55131 Mainz Tel: 06131 - 12 - 3557 Fax: 06131 - 12 - 2267 eMail: mailto:Gunter.Rieth@stadt.mainz.de Notesmail: Gunter Rieth/Dez1/Mainz URL:http/www.mainz.de Èëüÿ À. Ïðàõîâ Gesendet von: mapserver-users-admin@lists.gis.umn.edu 03.07.2003 13:19 Bitte antworten zu Èëüÿ À. Ïðàõîâ An Irvan Kristianto Kopie mapserver-users@lists.gis.umn.edu Thema Re: [Mapserver-users] mapinfo .tab on mapserver Try to use this: STATUS default CONNECTION "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_country/Euskalerria.TAB" IK> hello guys, IK> after has been successfully deploy mapserver on shapefile, i tried it too on IK> mapinfo *.tab. IK> but ... it didn't work .... :( IK> (sorry ... newbie) IK> please give me some sugestion. IK> thanks. IK> mapserver -v : IK> MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP IK> SUPPOR IK> TS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 IK> INPUT=P IK> OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE IK> here my map file... IK> MAP IK> NAME "DEMO" IK> STATUS ON IK> EXTENT 463549.689692 4641034.982725 685728.962267 4820458.629079 IK> SIZE 400 400 IK> SHAPEPATH "E:/Program Files/Apache IK> Group/Apache/htdocs/gis/maplab/projects/apps/demo/data" IK> IMAGECOLOR 255 255 255 IK> UNITS METERS IK> WEB IK> MINSCALE 20000 IK> MAXSCALE 50000000 IK> IMAGEPATH "E:/Program Files/Apache IK> Group/Apache/htdocs/gis/maplab/tmp/ms_tmp/" IK> IMAGEURL "/gis/maplab/tmp/ms_tmp/" IK> END IK> QUERYMAP IK> STATUS ON IK> SIZE 200 200 IK> COLOR 255 0 0 IK> STYLE HILITE IK> END IK> SCALEBAR IK> STATUS ON IK> COLOR 255 255 255 IK> IMAGECOLOR 255 255 255 IK> UNITS METERS IK> INTERVALS 1 IK> SIZE 80 2 IK> STYLE 1 IK> LABEL IK> SIZE tiny IK> COLOR 255 255 255 IK> END IK> END IK> SYMBOL IK> NAME "circle" IK> TYPE ELLIPSE IK> FILLED TRUE IK> POINTS IK> 1 1 IK> END IK> END IK> LAYER IK> NAME "wistate00" IK> STATUS ON IK> CONNECTIONTYPE OGR IK> CONNECTION "E:/Program Files/Apache IK> Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_countr IK> y/Euskalerria.TAB,Euskalerria" IK> TYPE POLYGON IK> STYLEITEM "AUTO" IK> CLASS IK> NAME "wistate00" IK> COLOR 250 175 25 IK> OUTLINECOLOR 255 0 0 IK> END IK> END IK> END ---------------- Ilya A. Prakhov mailto:prakhov@ggc.nnov.ru _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From james@danisat.net Thu Jul 3 13:03:04 2003 From: james@danisat.net (James Anderson) Date: Thu, 3 Jul 2003 14:03:04 +0200 Subject: [Mapserver-users] Layer Problem References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> Message-ID: <018a01c3415b$11563e80$4d570842@beast> Thanks very much. How high do u think I can take it ? Regards, James. ----- Original Message ----- From: "Paul Spencer" To: "James Anderson" Cc: Sent: Thursday, July 03, 2003 1:36 PM Subject: Re: [Mapserver-users] Layer Problem | edit this line in map.h and rebuild mapserver. | | #define MS_MAXLAYERS 100 /* maximum number of layers in a map file */ | | Cheers, | | Paul | | James Anderson wrote: | | > | > Hi Everybody, | > | > I seem to have a big problem ...... | > I am using mapserver on Red Hat 8 Linux. | > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ | > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG | > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE | > I have many vector layers and some raster layers too. At the moment my | > map file has over 100 layers in it. My problem is that when I have | > tried adding some more layers, I get the error | > | > msLoadMap(): Unknown identifier. Too many layers defined. | > | > Now this is a problem as I need to have all these layers. I got so many | > layers that its too many to count the exact amount. But this is a | > problem, and my project is going to fail if I cannot find a way to get | > mapserver to support/accept more layers. Can anyone give me an idea of | > what the maximum number of layers is, and how I can go about increasing | > the amount of layers that is supported. I have an idea that I am going | > to have to recompile the mapserver. Please anybody, Please Help !! | > | > Thanks, | > | > James. | > | | -- | Paul Spencer | Applications and Software Development | DM Solutions Group Inc. | http://www.dmsolutions.ca | From ed@topozone.com Thu Jul 3 13:33:18 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 3 Jul 2003 08:33:18 -0400 Subject: [Mapserver-users] Mapserver WMS client and proxy server Message-ID: <13858AA1A74F30419F319ACB66A9D1222BFC85@mercator.topozone.com> Stefan - As I mentioned, the test needs to be done from the same machine as the MapServer CGI is running on - not from your home system. I'm skeptical that the firewall can detect what program is generating the network traffic in the WMS request, but it is possible that ALL requests are blocked from that machine. - Ed -----Original Message----- From: Stefan Wiegand [mailto:s.wiegand@kdvz.de] Sent: Thu 7/3/2003 4:40 AM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Mapserver WMS client and proxy server Hello Ed I have tried to connect to a WMS Mapserver from home and everything works fine. When I type in the WMS request, I get the map and when I build a workaround by dyn layers via transparent image above the mapserver image all works fine. It works fine, because the browsers settings refer to the proxy, but the cgi does not, I think. My sys admin told me, he can recognize, that the mapserver cgi tries a direct connection to the WMS client. This is, out of security reasons, not allowed for us. Best regards Stefan Wiegand Mail: s.wiegand@kdvz.de www.kdvz.de From spencer@dmsolutions.ca Thu Jul 3 13:51:23 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Thu, 03 Jul 2003 08:51:23 -0400 Subject: [Mapserver-users] Layer Problem In-Reply-To: <018a01c3415b$11563e80$4d570842@beast> References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> <018a01c3415b$11563e80$4d570842@beast> Message-ID: <3F0426CB.7090206@magma.ca> no idea. theoretically, this value causes mapserver to pre-allocate sufficient storage for the defined number of layers. Changing this number should change the memory footprint of the executable. I am guessing that the actual data structures are not that large, so you should be able to create thousands of layers if you need to, but it will depend on how much memory you have available for a given process. I'm not sure, but there may be a memory limit imposed by Apache on cgis? I'd suggest that you rebuild with the number you have in mind plus a decent buffer and try it :) Cheers, Paul James Anderson wrote: > Thanks very much. How high do u think I can take it ? > > Regards, > > James. > > ----- Original Message ----- > From: "Paul Spencer" > To: "James Anderson" > Cc: > Sent: Thursday, July 03, 2003 1:36 PM > Subject: Re: [Mapserver-users] Layer Problem > > > | edit this line in map.h and rebuild mapserver. > | > | #define MS_MAXLAYERS 100 /* maximum number of layers in a map file */ > | > | Cheers, > | > | Paul > | > | James Anderson wrote: > | > | > > | > Hi Everybody, > | > > | > I seem to have a big problem ...... > | > I am using mapserver on Red Hat 8 Linux. > | > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > | > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > | > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > | > I have many vector layers and some raster layers too. At the moment my > | > map file has over 100 layers in it. My problem is that when I have > | > tried adding some more layers, I get the error > | > > | > msLoadMap(): Unknown identifier. Too many layers defined. > | > > | > Now this is a problem as I need to have all these layers. I got so many > | > layers that its too many to count the exact amount. But this is a > | > problem, and my project is going to fail if I cannot find a way to get > | > mapserver to support/accept more layers. Can anyone give me an idea of > | > what the maximum number of layers is, and how I can go about increasing > | > the amount of layers that is supported. I have an idea that I am going > | > to have to recompile the mapserver. Please anybody, Please Help !! > | > > | > Thanks, > | > > | > James. > | > > | > | -- > | Paul Spencer > | Applications and Software Development > | DM Solutions Group Inc. > | http://www.dmsolutions.ca > | > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From lfilak@medinaco.org Thu Jul 3 13:58:10 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Thu, 03 Jul 2003 08:58:10 -0400 Subject: [Mapserver-users] Problem with Perl Mapscript Message-ID: <200307031258.h63Cw1N08162@yogi.medinaco.net> For the version your using the documentation is correct. For your $image->saveImage($image, $image_path.$image_id, $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, $map->{imagequality}); call change it to $image->saveImage($image_path.$image_id, $mapscript::MS_PNG,$map->{transparent},$map->{interlace},0); imagequality has no effect on anything but JPEG and the usage message that you received that included "self" is from the SWIG code and is not actually part of the Perl call, for "$image->" indicates "self". I will hopefully have time later today to take a longer look. HTH Lowell The following message was sent by AMC Story on Thu, 03 Jul 2003 12:41:52 +0100 (BST). > Hi everyone, > > Following my question about using JavaScript/MapScript to develop the standard > MapServer interface, I've now decided to try to use both, and have got the Perl > MapScript module working on our apache server. > > My problem is that most of the documentation and examples are for PHP > MapScript. Having only a list of constructors/methods etc for each object type > is helpful to a point, but this doesn't tell me how I should be putting them > together to get something to actually work! I've been trying to convert the > PHP MapScript by Example HOWTO into perl, using Steve Lime's mapquakes.pl as a > guide. > > My first problem is that perl mapscript doesn't seem to have a direct > equivalent of the saveWebImage method. Is this correct? In the absence of > such a method, I've been trying to use the saveImage method, but here I seem to > be running into problems. If you look at the way I've called the method (see > code below), then maybe you could suggest what I'm doing wrong. > > In the first case (ie. using mapscript::msSaveImage(...)), I get the error > message "Type error in argument 1 of msSaveImage. Expected _p_gdImagePtr..." > when I run the program at the command line. In the second case, using $image- > >saveImage(..), I get the following usage message "Usage: imageObj_saveImage > (self,filename,type,transparent,interlace,quality);". This has confused me > because this isn't the argument list given in the documentation. > > If anyone has some simple, step by step examples of how to build up > applications using Perl MapScript I'd be really interested in having a look. > > Many thanks, > Ali > > > > #!/usr/local/bin/perl -w > # > #playing around with mapscript > # > > #use mapscript; > use CGI qw(:standard); > use mapscript; > > $cgi = new CGI; > > $map_file = "/usr/local/apache/local-bin/s9646183/mapscript/quakes.map"; > $image_path = "/usr/local/apache/htdocs/tmp/"; > $image_url = "/tmp/"; > $image_id = $$ . time() . ".png"; > > $map = new mapscript::mapObj($map_file); > $image = $map->prepareImage(); > $layer = $map->getLayerByName('countries'); > $layer->draw($map, $image); > mapscript::msSaveImage($image, $image_path.$image_id, $map->{imagetype}, $map-> > {transparent}, $map->{interlace}, $map->{imagequality}); > #$image->saveImage($image, $image_path.$image_id, $mapscript::MS_PNG, $map-> > {transparent}, $map->{interlace}, $map->{imagequality}); > > print $cgi->header(); > print $cgi->start_html(-title=>'Map 1: Perl Mapscript Test'); > > print "

This is just a test

"; > print "
$image_id ."\">
"; > > print $cgi->end_html(); > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ldm_ar@speedy.com.ar Thu Jul 3 14:32:47 2003 From: ldm_ar@speedy.com.ar (Lautaro Diego Mosquera) Date: Thu, 03 Jul 2003 10:32:47 -0300 Subject: Fw: [Mapserver-users] problem with mapserv, w2k and iis Message-ID: <001d01c34167$98328330$0100a8c0@ideafix> This is a multi-part message in MIME format. --Boundary_(ID_ncGWl+uryVoI0YbEUbmo0Q) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Gracias paul Trabajo con la version 3.66 ----- Original Message ----- From: Paul Dymecki To: Lautaro Diego Mosquera Sent: Wednesday, July 02, 2003 11:18 PM Subject: Re: [Mapserver-users] problem with mapserv, w2k and iis Perdon queria decir webserver, P ----- Original Message ----- From: Lautaro Diego Mosquera To: lista mapserver Sent: Wednesday, July 02, 2003 10:03 PM Subject: [Mapserver-users] problem with mapserv, w2k and iis Hola a todos Tengo problemas con la generacion de imagenes desde el mapserv, nunca pude generar imagenes. Cuales son los permisos que tengo que darles al mapserv.exe? Como lo tengo que configurar? Ya lei varios articulos sobre los permisos, pero no me funciona. Agradeceria ayuda. Desde ya muchas gracias. Lautaro --Boundary_(ID_ncGWl+uryVoI0YbEUbmo0Q) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Gracias paul
 
Trabajo con la version 3.66
 
----- Original Message -----
Sent: Wednesday, July 02, 2003 11:18 PM
Subject: Re: [Mapserver-users] problem with mapserv, w2k and iis

Perdon queria decir webserver,
P
----- Original Message -----
Sent: Wednesday, July 02, 2003 10:03 PM
Subject: [Mapserver-users] problem with mapserv, w2k and iis

Hola a todos
 
Tengo problemas con la generacion de imagenes desde el mapserv, nunca pude generar imagenes. Cuales son los permisos que tengo que darles al mapserv.exe? Como lo tengo que configurar?
Ya lei varios articulos sobre los permisos, pero no me funciona.
 
Agradeceria ayuda.
Desde ya muchas gracias.
Lautaro
--Boundary_(ID_ncGWl+uryVoI0YbEUbmo0Q)-- From Chip.Hankley@rmtinc.com Thu Jul 3 14:51:07 2003 From: Chip.Hankley@rmtinc.com (Chip Hankley) Date: Thu, 03 Jul 2003 08:51:07 -0500 Subject: [Mapserver-users] ActiveX IIS and Mapscript. Message-ID: Dean, >Basically what I want to do is get a Mapscript application working with IIS >without resorting to having to install PHP or perl and preferably without >needing a java engine installed either. The Mapscript application will >basically read from catalogue and present the maps. > >So - >Is there a COM component around that can be used within ASP. the archives >suggest a demand for, and some work being completed towards an ActiveX >component bit this seems to have petered out. (What happened?) I asked this question a couple of years ago. My hunch is that everyone who has gone done this path has come to the conclusion that PHP and/or Perl (afaik, the Perl version of MapScript still doesn't work on Windows) work so darn well that trying to support VBScript/ASP just isn't worth the effort. I'm not an ASP person, but I work with a lot of ASP people. I've been running PHP/MapScript on IIS living in peaceful coexistance w/ ASP applications for a couple years now... IMHO, PHP is so far superior to ASP as to be, well, I'm not sure of the best adjective. That said, if you REALLY want to use ASP, search the archives for a note from Ed McNierny on this subject. There are some pretty elegant work arounds that will allow you to use ASP (or PHP, or ColdFusion, or Perl) to hit the mapserver.exe, and pull back relevant information that can then be used by the scripting engine of your choice to make more dynamic pages. Also, as Steve Lime pointed out the other day, you can do a lot of REALLY cool stuff with the plain-jane cgi mapserver, especially when you throw all of the DHTML tools in the mix... so, make sure that you REALLY need mapscript. >Has anybody >successfully compiled them using Borland C++ (Command Line)? Am I setting >myself up for a fall suggesting that I will have a go at creating them. (I >am not a C/C++ Programmer but have done a reasonable amount of >programming in other languages). Not sure about this, but, as far as compiling the other stuff on Windows goes, the $100 (or so) you'd spend on VC++ is worth your time. Almost all of the libraries that are out there have vc++ makefiles, but NOT Borland makefiles. ASFAIK, they are NOT interchangeable. So, you could end up re-creating Borland makefiles for every library you need... I'm sure everyone would appreciate your efforts in doing that, but I'd imagine you'd spend a LOT of time doing it. Cheers! Chip Hankley Outgoing messages, along with any attachments, are scanned for viruses at RMT prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From james@danisat.net Thu Jul 3 14:59:29 2003 From: james@danisat.net (James Anderson) Date: Thu, 3 Jul 2003 15:59:29 +0200 Subject: [Mapserver-users] Layer Problem References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> <018a01c3415b$11563e80$4d570842@beast> <3F0426CB.7090206@magma.ca> Message-ID: <01a801c3416b$61886260$4d570842@beast> Hi, I am having issues with the compilation. I changed the MS_MAXLAYERS define from 100 to 500 in map.h I then did a ./configure --with-gd --with-proj --with-gdal=/usr/local/bin/gdal-config -- with-ogr which seemed to work then I did a make which also seems to work If I understand correctly, it would now have made the mapserv executable file in the current directory with the source, and it seems to be doing this as the mapserv file gets the current date and time. The problem is that when I compare the file to the previously built executabe, they are byte identical. Also it does not seem to be accepting more layers. So have I changed the value in the right place, am I compiling it correctly ? I also have copied the new exe to the cgi-bin where I call it from, but it does not really matter, because as I said, they seem to be byte identical. You have any ideas as to what I may be doing wrong ? The main issue is it still has the too many layer error. Regards, James. ----- Original Message ----- From: "Paul Spencer" To: "James Anderson" Cc: ; Sent: Thursday, July 03, 2003 2:51 PM Subject: Re: [Mapserver-users] Layer Problem | no idea. theoretically, this value causes mapserver to pre-allocate | sufficient storage for the defined number of layers. Changing this | number should change the memory footprint of the executable. I am | guessing that the actual data structures are not that large, so you | should be able to create thousands of layers if you need to, but it will | depend on how much memory you have available for a given process. I'm | not sure, but there may be a memory limit imposed by Apache on cgis? | | I'd suggest that you rebuild with the number you have in mind plus a | decent buffer and try it :) | | Cheers, | | Paul | | James Anderson wrote: | | > Thanks very much. How high do u think I can take it ? | > | > Regards, | > | > James. | > | > ----- Original Message ----- | > From: "Paul Spencer" | > To: "James Anderson" | > Cc: | > Sent: Thursday, July 03, 2003 1:36 PM | > Subject: Re: [Mapserver-users] Layer Problem | > | > | > | edit this line in map.h and rebuild mapserver. | > | | > | #define MS_MAXLAYERS 100 /* maximum number of layers in a map file */ | > | | > | Cheers, | > | | > | Paul | > | | > | James Anderson wrote: | > | | > | > | > | > Hi Everybody, | > | > | > | > I seem to have a big problem ...... | > | > I am using mapserver on Red Hat 8 Linux. | > | > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ | > | > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG | > | > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE | > | > I have many vector layers and some raster layers too. At the moment my | > | > map file has over 100 layers in it. My problem is that when I have | > | > tried adding some more layers, I get the error | > | > | > | > msLoadMap(): Unknown identifier. Too many layers defined. | > | > | > | > Now this is a problem as I need to have all these layers. I got so many | > | > layers that its too many to count the exact amount. But this is a | > | > problem, and my project is going to fail if I cannot find a way to get | > | > mapserver to support/accept more layers. Can anyone give me an idea of | > | > what the maximum number of layers is, and how I can go about increasing | > | > the amount of layers that is supported. I have an idea that I am going | > | > to have to recompile the mapserver. Please anybody, Please Help !! | > | > | > | > Thanks, | > | > | > | > James. | > | > | > | | > | -- | > | Paul Spencer | > | Applications and Software Development | > | DM Solutions Group Inc. | > | http://www.dmsolutions.ca | > | | > | > _______________________________________________ | > Mapserver-users mailing list | > Mapserver-users@lists.gis.umn.edu | > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users | > | | -- | Paul Spencer | Applications and Software Development | DM Solutions Group Inc. | http://www.dmsolutions.ca | | | _______________________________________________ | Mapserver-users mailing list | Mapserver-users@lists.gis.umn.edu | http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From hubert.froehlich@bvv.bayern.de Thu Jul 3 14:31:48 2003 From: hubert.froehlich@bvv.bayern.de (=?ISO-8859-1?Q?Hubert_Fr=F6hlich?=) Date: Thu, 03 Jul 2003 15:31:48 +0200 Subject: [Mapserver-users] how to use itemquery Message-ID: <3F043044.1010801@bvv.bayern.de> Hi list, maybe a dull question, but I didn't find how to use item queries in the documentation. Can anybody tell me a link to some documentation or html document or example? Thanks, Hubert -- ------------------------------------------------------------------------------- Dr.-Ing. Hubert Fröhlich Bezirksfinanzdirektion München Alexandrastr. 3, D-80538 München, GERMANY Tel. :+49 (0)89 / 2190 - 2980 Fax :+49 (0)89 / 2190 - 2459 hubert.froehlich@bvv.bayern.de From bplatzen@sosnetz.de Thu Jul 3 15:15:17 2003 From: bplatzen@sosnetz.de (Bjoern Platzen) Date: Thu, 3 Jul 2003 16:15:17 +0200 Subject: [Mapserver-users] Call WMS from same PC. In-Reply-To: <5.1.1.6.2.20030703175106.00aa53a8@mail.ait.ac.th> References: <5.1.1.6.2.20030703175106.00aa53a8@mail.ait.ac.th> Message-ID: <200307031615.17380.bplatzen@sosnetz.de> Hi, I had the same problem and made it with CONNECTION "http://localhost/cgi-bin/thaiwms?VERSION=1.1.0&LAYERS=LANDSAT&Format=png" ^^^^^^^^^ Maybe it works for you as well. Bye, Bjoern. Am Donnerstag, 3. Juli 2003 12:55 schrieb Sarawut Ninsawat: > Dear all > > I setup two map page(difference map.phml,php3) in same machine. I try > to use WMS connection from one page to another but it's not work. But > if I use another computer same parameter as shown below (mapserv WMS > client) to connect to Server. It's fine. > > > LAYER > NAME "color06" > METADATA > wms_title "Tests" > wms_srs "EPSG:32647" > END > TYPE RASTER > STATUS off > CONNECTIONTYPE WMS > CONNECTION > "http://203.159.10.13/cgi-bin/thaiwms?VERSION=1.1.0&LAYERS=LANDSAT&Fo >rmat=png" projection > "init=EPSG:32647" > > end > END > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- small office solutions info@sosnetz.de - http://www.sosnetz.de From schut@sarvision.com Thu Jul 3 15:36:37 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 3 Jul 2003 16:36:37 +0200 Subject: [Mapserver-users] Layer Problem In-Reply-To: <01a801c3416b$61886260$4d570842@beast> References: <012901c34155$66c64000$4d570842@beast> <3F0426CB.7090206@magma.ca> <01a801c3416b$61886260$4d570842@beast> Message-ID: <200307031636.37751.schut@sarvision.com> Hmm should have worked, but to be sure: first type 'make clean' in the mapserver source dir, then ./configure --your-options and make. Then you definitely have a new mapserv exe which has used the new map.h file. Cheers, Vincent. On Thursday 03 July 2003 15:59, James Anderson wrote: > Hi, > > I am having issues with the compilation. > > I changed the MS_MAXLAYERS define from 100 to 500 in map.h > > I then did a > > ./configure --with-gd --with-proj --with-gdal=/usr/local/bin/gdal-config > -- with-ogr > > which seemed to work > > then I did a make > > which also seems to work > > If I understand correctly, it would now have made the mapserv executable > file in the current directory with the source, and it seems to be doing > this as the mapserv file gets the current date and time. The problem is > that when I compare the file to the previously built executabe, they are > byte identical. Also it does not seem to be accepting more layers. So > have I changed the value in the right place, am I compiling it correctly ? > I also have copied the new exe to the cgi-bin where I call it from, but it > does not really matter, because as I said, they seem to be byte identical. > You have any ideas as to what I may be doing wrong ? The main issue is > it still has the too many layer error. > > Regards, > > James. > > > > ----- Original Message ----- > From: "Paul Spencer" > To: "James Anderson" > Cc: ; > Sent: Thursday, July 03, 2003 2:51 PM > Subject: Re: [Mapserver-users] Layer Problem > > | no idea. theoretically, this value causes mapserver to pre-allocate > | sufficient storage for the defined number of layers. Changing this > | number should change the memory footprint of the executable. I am > | guessing that the actual data structures are not that large, so you > | should be able to create thousands of layers if you need to, but it will > | depend on how much memory you have available for a given process. I'm > | not sure, but there may be a memory limit imposed by Apache on cgis? > | > | I'd suggest that you rebuild with the number you have in mind plus a > | decent buffer and try it :) > | > | Cheers, > | > | Paul > | > | James Anderson wrote: > | > Thanks very much. How high do u think I can take it ? > | > > | > Regards, > | > > | > James. > | > > | > ----- Original Message ----- > | > From: "Paul Spencer" > | > To: "James Anderson" > | > Cc: > | > Sent: Thursday, July 03, 2003 1:36 PM > | > Subject: Re: [Mapserver-users] Layer Problem > | > > | > | edit this line in map.h and rebuild mapserver. > | > | > | > | #define MS_MAXLAYERS 100 /* maximum number of layers in a map file */ > | > | > | > | Cheers, > | > | > | > | Paul > | > | > | > | James Anderson wrote: > | > | > Hi Everybody, > | > | > > | > | > I seem to have a big problem ...... > | > | > I am using mapserver on Red Hat 8 Linux. > | > | > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=PROJ > > | > | > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > | > | > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > | > | > I have many vector layers and some raster layers too. At the > | > | > moment > > my > > | > | > map file has over 100 layers in it. My problem is that when I have > | > | > tried adding some more layers, I get the error > | > | > > | > | > msLoadMap(): Unknown identifier. Too many layers defined. > | > | > > | > | > Now this is a problem as I need to have all these layers. I got so > > many > > | > | > layers that its too many to count the exact amount. But this is a > | > | > problem, and my project is going to fail if I cannot find a way to > > get > > | > | > mapserver to support/accept more layers. Can anyone give me an > > idea of > > | > | > what the maximum number of layers is, and how I can go about > > increasing > > | > | > the amount of layers that is supported. I have an idea that I am > > going > > | > | > to have to recompile the mapserver. Please anybody, Please Help > | > | > !! > | > | > > | > | > Thanks, > | > | > > | > | > James. > | > | > | > | -- > | > | Paul Spencer > | > | Applications and Software Development > | > | DM Solutions Group Inc. > | > | http://www.dmsolutions.ca > | > > | > _______________________________________________ > | > Mapserver-users mailing list > | > Mapserver-users@lists.gis.umn.edu > | > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > | > | -- > | Paul Spencer > | Applications and Software Development > | DM Solutions Group Inc. > | http://www.dmsolutions.ca > | > | > | _______________________________________________ > | Mapserver-users mailing list > | Mapserver-users@lists.gis.umn.edu > | http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From nwoe@privat.utfors.se Thu Jul 3 15:52:23 2003 From: nwoe@privat.utfors.se (niklas wörmann) Date: Thu, 3 Jul 2003 16:52:23 +0200 Subject: [Mapserver-users] defining imageformats References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> <018a01c3415b$11563e80$4d570842@beast> <3F0426CB.7090206@magma.ca> <01a801c3416b$61886260$4d570842@beast> Message-ID: <001301c34172$c349b290$8300a8c0@big> Hi! my map file contains the following OUTPUTFORMAT NAME "jpg80" DRIVER "GD/JPEG" IMAGEMODE RGB FORMATOPTION "QUALITY=80" EXTENSION "jpg" END and IMAGETYPE "jpg80" and upon cgi get i receive: getSymbol(): Symbol definition error. (jpg80):(13) i have tried using quotes/ no quotes to no avail. how would i go about defining my own outputformat? i have a feeling it is about where in the map file things are declared.. TIA niklas wörmann älvsjö sweden From warmerdam@pobox.com Thu Jul 3 16:21:08 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Thu, 03 Jul 2003 11:21:08 -0400 Subject: [Mapserver-users] defining imageformats In-Reply-To: <001301c34172$c349b290$8300a8c0@big> References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> <018a01c3415b$11563e80$4d570842@beast> <3F0426CB.7090206@magma.ca> <01a801c3416b$61886260$4d570842@beast> <001301c34172$c349b290$8300a8c0@big> Message-ID: <3F0449E4.8010007@pobox.com> niklas wörmann wrote: > Hi! > my map file contains the following > > OUTPUTFORMAT > NAME "jpg80" > DRIVER "GD/JPEG" > IMAGEMODE RGB > FORMATOPTION "QUALITY=80" > EXTENSION "jpg" > END > > and > > IMAGETYPE "jpg80" > > and upon cgi get i receive: > > getSymbol(): Symbol definition error. (jpg80):(13) > > i have tried using quotes/ no quotes to no avail. > > how would i go about defining my own outputformat? > i have a feeling it is about where in the map file things are declared.. Niklas, I have tried this with MapServer 4 and no problems. Note that you don't normally need to quote the name passed to NAME or IMAGETYPE, but you can. Is it possible you are using a 3.6 based MapServer, not MapServer 4 (previously 3.7)? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From palle@mail-online.dk Thu Jul 3 16:42:35 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Thu, 03 Jul 2003 17:42:35 +0200 Subject: [Mapserver-users] plugging in a template to get cgi back In-Reply-To: <002601c3413d$4c929070$8300a8c0@big> References: <000001c340be$56173030$d701a8c0@matt> <3F033B27.5060407@frw.uva.nl> <002001c34139$a9237380$8300a8c0@big> <002601c3413d$4c929070$8300a8c0@big> Message-ID: Your template file doesn't need to be html. You could make it key-value pairs like this: map=[MAP] mode=[MODE] mapext=[MAPEXT] or even XML. Maybe you would find those formats easier to parse. Best regards Palle Due Larsen Carl Bro GIS&IT -----Original Message----- From: niklas wörmann To: Date: Thu, 3 Jul 2003 10:29:57 +0200 Subject: Re: [Mapserver-users] plugging in a template to get cgi back > > > > > well i have finally figured a way to do it, but it feels really > clumsy. > i set up at template file (html form stuff), reference that file in > my map file, > send the data via get to the server, and get the "populated" template > file back.(this is where mapserver magically has replaced all my > [cgi-variable]s with the real stuff. > i then have to parse the html file to look for the variables. > > there must be an easier way to do this.... > > regards > niklas wörmann > älvsjö > sweden > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users Få en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille konkurrence på nettet, og vind et gavekort på 50.000 kroner... KLIK HER: www.directoffice.dk/konkurrence From nwoe@privat.utfors.se Thu Jul 3 16:42:53 2003 From: nwoe@privat.utfors.se (niklas wörmann) Date: Thu, 3 Jul 2003 17:42:53 +0200 Subject: [Mapserver-users] defining imageformats References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> <018a01c3415b$11563e80$4d570842@beast> <3F0426CB.7090206@magma.ca> <01a801c3416b$61886260$4d570842@beast> <001301c34172$c349b290$8300a8c0@big> <3F0449E4.8010007@pobox.com> Message-ID: <002a01c34179$c7e1d420$8300a8c0@big> This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C3418A.87E4FFD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ----- Original Message -----=20 From: "Frank Warmerdam" To: "niklas w=F6rmann" Cc: Sent: Thursday, July 03, 2003 5:21 PM Subject: Re: [Mapserver-users] defining imageformats niklas w=F6rmann wrote: > Hi! > my map file contains the following >=20 > OUTPUTFORMAT > NAME "jpg80" > DRIVER "GD/JPEG" > IMAGEMODE RGB > FORMATOPTION "QUALITY=3D80" > EXTENSION "jpg" > END >=20 > and >=20 > IMAGETYPE "jpg80" >=20 ----- Niklas, I have tried this with MapServer 4 and no problems. Note that you don't normally need to quote the name passed to NAME or IMAGETYPE, but you = can. Is it possible you are using a 3.6 based MapServer, not MapServer 4 = (previously 3.7)? Hi! You are right, i am using 3.6.6. I take it it wont work under 3.6.6 then? niklas ------=_NextPart_000_0025_01C3418A.87E4FFD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
----- Original Message -----
From: "Frank Warmerdam" <warmerdam@pobox.com>
To: "niklas w=F6rmann" <nwoe@privat.utfors.se>
Cc: <mapserver-users@lists.gis.umn.edu>
Sent: Thursday, July 03, 2003 5:21 = PM
Subject: Re: [Mapserver-users] defining = imageformats

niklas w=F6rmann wrote:
> = Hi!
> my map=20 file contains the following
>
>=20 OUTPUTFORMAT
>     NAME=20 "jpg80"
>     DRIVER=20 "GD/JPEG"
>     IMAGEMODE=20 RGB
>     FORMATOPTION=20 "QUALITY=3D80"
>     EXTENSION = "jpg"
>  =20 END
>
> and
>
> IMAGETYPE "jpg80"
>=20
-----

Niklas,

I have tried this with MapServer 4 and = no=20 problems.  Note that you don't
normally need to quote the name = passed to=20 NAME or IMAGETYPE, but you can.

Is it possible you are using a = 3.6 based=20 MapServer, not MapServer 4 = (previously
3.7)?


Hi!
You are right, i am using = 3.6.6.
I take it it wont work under 3.6.6=20 then?
 
niklas
------=_NextPart_000_0025_01C3418A.87E4FFD0-- From ed@topozone.com Thu Jul 3 16:51:03 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 3 Jul 2003 11:51:03 -0400 Subject: [Mapserver-users] ActiveX IIS and Mapscript. Message-ID: <13858AA1A74F30419F319ACB66A9D1222BFC87@mercator.topozone.com> Dean - The primary issue with a COM object interfacing to the MapScript libraries is the issue of multithreading support, which IIS requires. The issue of thread safety is well-known and a lot of folks have been putting a lot of effort into it. Once we've got a good multithreaded base, a VBScript-compatible COM wrapper is a pretty simple task; until then, I (at least) have concluded it's not worth the trouble. As Chip says, however, it's very easy to write VBScript ASP code that programmatically builds MapServer CGI calls. With that you can do really quite a lot (but not everything) that a MapScript interface does. The primary value of a multithreaded COM server is the ability to have a single module serving multiple clients, rather than launching a new CGI for each one (although the cost of doing that is often overstated). - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Chip Hankley [mailto:Chip.Hankley@rmtinc.com] Sent: Thursday, July 03, 2003 9:51 AM To: dtaylor@karjeni.com.au; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] ActiveX IIS and Mapscript. Dean, >Basically what I want to do is get a Mapscript application working with IIS >without resorting to having to install PHP or perl and preferably without >needing a java engine installed either. The Mapscript application will >basically read from catalogue and present the maps. > >So - >Is there a COM component around that can be used within ASP. the archives >suggest a demand for, and some work being completed towards an ActiveX >component bit this seems to have petered out. (What happened?) I asked this question a couple of years ago. My hunch is that everyone who has gone done this path has come to the conclusion that PHP and/or Perl (afaik, the Perl version of MapScript still doesn't work on Windows) work so darn well that trying to support VBScript/ASP just isn't worth the effort. I'm not an ASP person, but I work with a lot of ASP people. I've been running PHP/MapScript on IIS living in peaceful coexistance w/ ASP applications for a couple years now... IMHO, PHP is so far superior to ASP as to be, well, I'm not sure of the best adjective. That said, if you REALLY want to use ASP, search the archives for a note from Ed McNierny on this subject. There are some pretty elegant work arounds that will allow you to use ASP (or PHP, or ColdFusion, or Perl) to hit the mapserver.exe, and pull back relevant information that can then be used by the scripting engine of your choice to make more dynamic pages. Also, as Steve Lime pointed out the other day, you can do a lot of REALLY cool stuff with the plain-jane cgi mapserver, especially when you throw all of the DHTML tools in the mix... so, make sure that you REALLY need mapscript. >Has anybody >successfully compiled them using Borland C++ (Command Line)? Am I setting >myself up for a fall suggesting that I will have a go at creating them. (I >am not a C/C++ Programmer but have done a reasonable amount of >programming in other languages). Not sure about this, but, as far as compiling the other stuff on Windows goes, the $100 (or so) you'd spend on VC++ is worth your time. Almost all of the libraries that are out there have vc++ makefiles, but NOT Borland makefiles. ASFAIK, they are NOT interchangeable. So, you could end up re-creating Borland makefiles for every library you need... I'm sure everyone would appreciate your efforts in doing that, but I'd imagine you'd spend a LOT of time doing it. Cheers! Chip Hankley Outgoing messages, along with any attachments, are scanned for viruses at RMT prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From warmerdam@pobox.com Thu Jul 3 17:26:05 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Thu, 03 Jul 2003 12:26:05 -0400 Subject: [Mapserver-users] defining imageformats In-Reply-To: <002a01c34179$c7e1d420$8300a8c0@big> References: <012901c34155$66c64000$4d570842@beast> <3F04153B.40807@magma.ca> <018a01c3415b$11563e80$4d570842@beast> <3F0426CB.7090206@magma.ca> <01a801c3416b$61886260$4d570842@beast> <001301c34172$c349b290$8300a8c0@big> <3F0449E4.8010007@pobox.com> <002a01c34179$c7e1d420$8300a8c0@big> Message-ID: <3F04591D.1030401@pobox.com> niklas wörmann wrote: > Hi! > You are right, i am using 3.6.6. > I take it it wont work under 3.6.6 then? > > niklas Niklas, The OUTPUTFORMAT support is only available in MapServer 4.x and later. Also true 24bit support isn't available in 3.6.x. However, you should be able to select an IMAGETYPE of JPEG, and set the quality via the QUALITY keyword in 3.6.x. I believe the image is still rendered with an 8bit palette, and then before writing to the JPEG file is expanded to 24bit RGB. This is not ideal, but may be sufficient for your purposes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gayathri@ou.edu Thu Jul 3 17:44:24 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Thu, 3 Jul 2003 11:44:24 -0500 Subject: [Mapserver-users] how to use itemquery Message-ID: Hello: http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/test.html HTH, Gayathri -----Original Message----- From: Hubert Fröhlich [mailto:hubert.froehlich@bvv.bayern.de] Sent: Thursday, July 03, 2003 7:32 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] how to use itemquery Hi list, maybe a dull question, but I didn't find how to use item queries in the documentation. Can anybody tell me a link to some documentation or html document or example? Thanks, Hubert -- ---------------------------------------------------------------------------- --- Dr.-Ing. Hubert Fröhlich Bezirksfinanzdirektion München Alexandrastr. 3, D-80538 München, GERMANY Tel. :+49 (0)89 / 2190 - 2980 Fax :+49 (0)89 / 2190 - 2459 hubert.froehlich@bvv.bayern.de _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gis@farmvilleva.com Thu Jul 3 18:14:05 2003 From: gis@farmvilleva.com (John M. Duggan, LSIT) Date: Thu, 3 Jul 2003 13:14:05 -0400 Subject: [Mapserver-users] Reslecting Message-ID: <00e801c34186$81ead5e0$1c00000a@JMDSurvey> This is a multi-part message in MIME format. ------=_NextPart_000_00E5_01C34164.FAA52D90 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello all, I sure appreciate everyone's input on this list it helps me = out in many ways. I'm hoping for a little more on check box's. I would = like to be able to inform the server that if someone checks a box to = turn on a layer that it will stay checked until they uncheck it. Is this = possible? Thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads ------=_NextPart_000_00E5_01C34164.FAA52D90 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hello all, I sure appreciate everyone's = input on=20 this list it helps me out in many ways. I'm hoping for a little more on = check=20 box's. I would like to be able to inform the server that if someone = checks a box=20 to turn on a layer that it will stay checked until they uncheck it. Is = this=20 possible?
Thanks,
John
 
John M. Duggan LSIT
gis@farmvilleva.com
http://www.farmvilleva.com
(43= 4)=20 392-3333
 
"......for the whole universe is in Him = and He=20 dwells
within our=20 heart."
          &n= bsp;           &nb= sp;  =20 -The Upanishads
------=_NextPart_000_00E5_01C34164.FAA52D90-- From Zamil.Murji@divestco.com Thu Jul 3 18:21:13 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Thu, 3 Jul 2003 11:21:13 -0600 Subject: [Mapserver-users] Oracle Spatial Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A924@div-mx02.DIVESTCO.COM> Thanks, That gets rid of my connection issues, however, I still get the same message back from mapserver. Here is one record from the db (I got the SRID correct using shp2sdo): GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- SDO_GEOMETRY(2, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(-109.75084, 51.670937, -109.75084, 51.670937)) It is a point format, however, SDO_POINT is NULL. Will mapserver draw the SDO_ORDINATES instead? If not, where do I go from here. Once again is there any log of what queries the mapserver is running against the db? Thanks in advance, Zamil -----Original Message----- From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith@erdc.usace.army.mil] Sent: Thursday, July 03, 2003 4:16 AM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Having the SDO_POINT = NULL is correct if this is a non point shapefile. If the SRID is NULL don't include it in the data statement Use DATA "GEOMETRY FROM OILWELLS" You're problem is the Connecttion statement (CONNECTION "sdb/sdb@10.0.50.30") The correct format is user/password@tnsname You need to define a tnsname that points to the correct host, port and sid. There are various tools to do this (Oracle Net Manager, edit the tnsnames.ora) In the tnsnames.ora file you would have TNSNAME.DOMAIN.COM = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.50.30)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = your_service_name_here) ) ) Then you connection string would be CONNECTION "sdb/sdb@tnsname" Mike Smith email: michael.smith@erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Wednesday, July 02, 2003 5:50 PM To: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial After using the oracle tools to convert my shapefile into an oracle spatial format, this is what I have: SQL> select * from oilwells where gid = 1; GID ---------- GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- 1 SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY( -112.08855, 48.9998283, -112.08855, 48.9998283)) SQL> Notice that the SDO_POINT(X, Y, Z) column is NULL. Can mapserver handle this case. I guess the otn utilities utilize the last two columns. Also note that the SRID is null. When i draw my image, I get the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map definition for this layer. LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE oraclespatial CONNECTION "sdb/sdb@10.0.50.30" DATA "GEOMETRY FROM OILWELLS USING SRID NULL" # DUMP TRUE MAXSCALE 20 SYMBOLSCALE 2 CLASS SYMBOL 3 SIZE 12 MAXSIZE 28 MINSIZE 4 END END I am using mapserver 3.6.6 precompiled with oracle spatial support from the mapserver downloads page. Any help would be greatly appreciated. Thanks Zamil -----Original Message----- From: Zamil Murji Sent: Wednesday, July 02, 2003 2:36 PM To: bartvde@xs4all.nl; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Thanks Bart for the quick reply... I was able to convert my shapefiles into oracle spatial format using some tools on otn. Using those tools they insert NULL as the SRID. Will this cause grief? According to the WIKI you had to specify a SRID otherwise you got a mapserver error. Is this correct? Is there any way to see what query mapserver will be running? Like a log file or something of the sort. In the connection string, does service refer to the ip address? Thanks in advance, Zamil -----Original Message----- From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] Sent: Wednesday, July 02, 2003 12:22 PM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Oracle Spatial Hi Zamil, otn (Oracle technology network) is the best site for Oracle information. Oracle itself has a tool to import shapefiles into Oracle Spatial. http://otn.oracle.com (you can register for free) The easiest to use is the built-in Oracle Spatial support. To use the support through OGR, you have to compile OGR against the Oracle client library. See also the mapserver wiki Oracle Spatial page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji wrote: > Hello list, > > I want to use MapServer to draw an Oracle Spatial layer, however, I have > never used Oracle Spatial. I have some questions I am sure you will be > able to answer. > > 1) What utilities are available to import a shapefile into an Oracle > Spatial database? Where can I download them from? 2) Need to know some > good sites on how to setup Oracle 8i with the Spatial component, and I > need a quick tutorial on how to create a table, alter a table, insert and > select from that table. Any good sites? > 3) I read on the newsgroup that there are two ways to go about this. One > is to use the built in oracle spatial support and the other is to use > ogr. I am running Apache on a windows 2000 box, what way is the best to > go, easiest to setup? > > Thanks for your help > Zamil > > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Wednesday, June 25, 2003 8:44 AM > To: mapserver-users@lists.gis.umn.edu > Cc: niklas "wörmann > Subject: Re: [Mapserver-users] running v4 beta as a command line tool > > > I've tested on MapServer 3.6.4 for Windows, using: > > $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > > myresult.gif > > but if you try to open "myresult.gif" it crash... > > so I opened this file with a text editor and deleted the first two > lines(the headers), then it works! > > regards > > Eduardo Patto Kanegae > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > > > On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut > enscreveu: > >> De: Vincent Schut >> Data: Wed, 25 Jun 2003 14:43:41 +0200 >> Para: niklas wörmann , > users@lists.gis.umn.edu> >> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >> >> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >> > Hi! >> > i am trying to track down the reason mapserver isn´t working on my >> windows >> > 2000 server. >> > >> > i remember seeing somewhere that it was indeed possible to run >> mapserver as >> > a command line tool, specifying a map file and an output file >> > >> > anyone know the syntax for this? >> >> On linux: >> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >> This will output headers + image data to stdout (on linux). Probably on >> windows your executable is not named mapserv but something like >> mapserv.exe? And use \ instead of / I think. >> >> you cannot just save the output as image file because the headers are in >> the output too. >> But you can see if it outputs something (lots of ascii: image), or gives >> an error. >> To see the image: type in your browser: >> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >> change / in path to \ if on windows? >> >> Regards, >> -- ______________________________________ >> Vincent Schut >> Sarvision B.V. >> Wageningen, The Netherlands >> www.sarvision.com >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From bartvde@xs4all.nl Thu Jul 3 18:32:26 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Thu, 03 Jul 2003 19:32:26 +0200 Subject: [Mapserver-users] Oracle Spatial In-Reply-To: <64FC1B3E23F04C4E931EE3F6D809FF30A924@div-mx02.DIVESTCO.COM> References: <64FC1B3E23F04C4E931EE3F6D809FF30A924@div-mx02.DIVESTCO.COM> Message-ID: Hi Zamil, you should validate your geometries in the table. You can do this with Oracle Spatial. If your geometries are valid, mapserver should be able to draw them. Validate syntax is in the Oracle Spatial manual from Oracle. About the logging of Oracle queries, I think it disappeared in the last version. In the old versions when you got an error you got the complete Oracle statement in the error messages. I think it is quite important for debugging purposes that this will get restored the way it used to be. Hopefully some of the developers have time to do this, but ofcourse now they are working very hard on the release of 4.0. Best regards, Bart On Thu, 3 Jul 2003 11:21:13 -0600, Zamil Murji wrote: > Thanks, > > That gets rid of my connection issues, however, I still get the same > message back from mapserver. > > Here is one record from the db (I got the SRID correct using shp2sdo): > GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, > SDO_ORDINATES) > -------------------------------------------------------------------------- > > > ------ > SDO_GEOMETRY(2, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), > SDO_ORDINATE_ARRAY(-109.75084, 51.670937, -109.75084, 51.670937)) > > It is a point format, however, SDO_POINT is NULL. Will mapserver draw the > SDO_ORDINATES instead? If not, where do I go from here. Once again is > there any log of what queries the mapserver is running against the db? > > Thanks in advance, > Zamil > > -----Original Message----- > From: Smith, Michael ERDC-CRREL-NH > [mailto:Michael.Smith@erdc.usace.army.mil] > Sent: Thursday, July 03, 2003 4:16 AM > To: Zamil Murji; mapserver-users@lists.gis.umn.edu > Subject: RE: [Mapserver-users] Oracle Spatial > > > Having the SDO_POINT = NULL is correct if this is a non point shapefile. > > If the SRID is NULL don't include it in the data statement > > Use DATA "GEOMETRY FROM OILWELLS" > > You're problem is the Connecttion statement (CONNECTION > "sdb/sdb@10.0.50.30") > The correct format is user/password@tnsname > > You need to define a tnsname that points to the correct host, port and > sid. > There are various tools to do this (Oracle Net Manager, edit the > tnsnames.ora) > > In the tnsnames.ora file you would have > > > TNSNAME.DOMAIN.COM = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.50.30)(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = your_service_name_here) > ) > ) > > Then you connection string would be CONNECTION "sdb/sdb@tnsname" > > > Mike Smith > email: michael.smith@erdc.usace.army.mil > RSGISC > ERDC - CRREL Hanover, NH 03755 > (603) 646-4765 > > > > -----Original Message----- > From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Wednesday, July > 02, 2003 5:50 PM > To: mapserver-users@lists.gis.umn.edu > Subject: RE: [Mapserver-users] Oracle Spatial > > > After using the oracle tools to convert my shapefile into an oracle > spatial format, this is what I have: > > SQL> select * from oilwells where gid = 1; > > GID > ---------- > GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, > SDO_ORDINATES) > -------------------------------------------------------------------------- > > > ------ > 1 > SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), > SDO_ORDINATE_ARRAY( > -112.08855, 48.9998283, -112.08855, 48.9998283)) > > > SQL> > > Notice that the SDO_POINT(X, Y, Z) column is NULL. Can mapserver handle > this case. I guess the otn utilities utilize the last two columns. > Also note that the SRID is null. When i draw my image, I get the > following error message: > msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. > > Here is my .map definition for this layer. > LAYER > NAME "oilwells" > TYPE point > STATUS default > CONNECTIONTYPE oraclespatial CONNECTION "sdb/sdb@10.0.50.30" DATA > "GEOMETRY FROM OILWELLS USING SRID NULL" # DUMP TRUE MAXSCALE 20 > SYMBOLSCALE 2 > CLASS > SYMBOL 3 > SIZE 12 > MAXSIZE 28 > MINSIZE 4 > END > END > > I am using mapserver 3.6.6 precompiled with oracle spatial support from > the mapserver downloads page. > > Any help would be greatly appreciated. Thanks > Zamil > > -----Original Message----- > From: Zamil Murji Sent: Wednesday, July 02, 2003 2:36 PM > To: bartvde@xs4all.nl; mapserver-users@lists.gis.umn.edu > Subject: RE: [Mapserver-users] Oracle Spatial > > > Thanks Bart for the quick reply... > > I was able to convert my shapefiles into oracle spatial format using some > tools on otn. Using those tools they insert NULL as the SRID. Will this > cause grief? According to the WIKI you had to specify a SRID otherwise > you got a mapserver error. Is this correct? > > Is there any way to see what query mapserver will be running? Like a log > file or something of the sort. > > In the connection string, does service refer to the ip address? > > Thanks in advance, > Zamil > > -----Original Message----- > From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] > Sent: Wednesday, July 02, 2003 12:22 PM > To: Zamil Murji; mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] Oracle Spatial > > > Hi Zamil, > > otn (Oracle technology network) is the best site for Oracle information. > Oracle itself has a tool to import shapefiles into Oracle Spatial. > > http://otn.oracle.com (you can register for free) > > The easiest to use is the built-in Oracle Spatial support. To use the > support through OGR, you have to compile OGR against the Oracle client > library. > > See also the mapserver wiki Oracle Spatial page: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial > > Best regards, > Bart > > On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji > wrote: > >> Hello list, >> >> I want to use MapServer to draw an Oracle Spatial layer, however, I have >> never used Oracle Spatial. I have some questions I am sure you will be >> able to answer. >> >> 1) What utilities are available to import a shapefile into an Oracle >> Spatial database? Where can I download them from? 2) Need to know some >> good sites on how to setup Oracle 8i with the Spatial component, and I >> need a quick tutorial on how to create a table, alter a table, insert >> and select from that table. Any good sites? >> 3) I read on the newsgroup that there are two ways to go about this. One >> is to use the built in oracle spatial support and the other is to use >> ogr. I am running Apache on a windows 2000 box, what way is the best to >> go, easiest to setup? >> >> Thanks for your help >> Zamil >> >> -----Original Message----- >> From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] >> Sent: Wednesday, June 25, 2003 8:44 AM >> To: mapserver-users@lists.gis.umn.edu >> Cc: niklas "wörmann >> Subject: Re: [Mapserver-users] running v4 beta as a command line tool >> >> >> I've tested on MapServer 3.6.4 for Windows, using: >> >> $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > >> myresult.gif >> >> but if you try to open "myresult.gif" it crash... >> >> so I opened this file with a text editor and deleted the first two >> lines(the headers), then it works! >> >> regards >> >> Eduardo Patto Kanegae >> eduardo@linkgeo.com.br >> http://www.linkgeo.com.br >> >> *************************************** >> ***Fim da Mensagem / End of Message *** >> *************************************** >> >> >> On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut >> enscreveu: >> >>> De: Vincent Schut >>> Data: Wed, 25 Jun 2003 14:43:41 +0200 >>> Para: niklas wörmann , >> users@lists.gis.umn.edu> >>> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >>> >>> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >>> > Hi! >>> > i am trying to track down the reason mapserver isn´t working on my >>> windows >>> > 2000 server. >>> > >>> > i remember seeing somewhere that it was indeed possible to run >>> mapserver as >>> > a command line tool, specifying a map file and an output file >>> > >>> > anyone know the syntax for this? >>> >>> On linux: >>> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >>> This will output headers + image data to stdout (on linux). Probably on >>> windows your executable is not named mapserv but something like >>> mapserv.exe? And use \ instead of / I think. >>> >>> you cannot just save the output as image file because the headers are >>> in the output too. >>> But you can see if it outputs something (lots of ascii: image), or >>> gives an error. >>> To see the image: type in your browser: >>> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >>> change / in path to \ if on windows? >>> >>> Regards, >>> -- ______________________________________ >>> Vincent Schut >>> Sarvision B.V. >>> Wageningen, The Netherlands >>> www.sarvision.com >>> >>> _______________________________________________ >>> Mapserver-users mailing list >>> Mapserver-users@lists.gis.umn.edu >>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >>> >>> >>> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> > > > -- From gayathri@ou.edu Thu Jul 3 19:12:20 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Thu, 3 Jul 2003 13:12:20 -0500 Subject: [Mapserver-users] Reslecting Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C3418E.A5267BB0 Content-Type: text/plain Hi: If your code looked something like this in the legend.. <----Rest of all the map information-----> that should work for you. Thanks, Gayathri -----Original Message----- From: John M. Duggan, LSIT [mailto:gis@farmvilleva.com] Sent: Thursday, July 03, 2003 11:14 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Reslecting Hello all, I sure appreciate everyone's input on this list it helps me out in many ways. I'm hoping for a little more on check box's. I would like to be able to inform the server that if someone checks a box to turn on a layer that it will stay checked until they uncheck it. Is this possible? Thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads ------_=_NextPart_001_01C3418E.A5267BB0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Message
Hi:
If=20 your code looked something like this in the = legend..
 
<form method=3DPOST = action=3D"/cgi-bin/mapserv.exe"=20 target=3D"map" name=3D"mapserv">
    <----Rest of all the = map=20 information----->
     <input = type=3Dcheckbox=20 name=3Dlayer value=3D[layer_name] CHECKED>
</form>
that=20 should work for you.
Thanks,
Gayathri

-----Original Message-----
From: = John M. Duggan,=20 LSIT [mailto:gis@farmvilleva.com]
Sent: Thursday, July 03, = 2003=20 11:14 AM
To: = mapserver-users@lists.gis.umn.edu
Subject:=20 [Mapserver-users] Reslecting

Hello all, I sure appreciate = everyone's input=20 on this list it helps me out in many ways. I'm hoping for a little = more on=20 check box's. I would like to be able to inform the server that if = someone=20 checks a box to turn on a layer that it will stay checked until they = uncheck=20 it. Is this possible?
Thanks,
John
 
John M. Duggan LSIT
gis@farmvilleva.com
http://www.farmvilleva.com
(4= 34)=20 392-3333
 
"......for the whole universe is in = Him and He=20 dwells
within our=20 = heart."
          &= nbsp;           &= nbsp;  =20 -The Upanishads
------_=_NextPart_001_01C3418E.A5267BB0-- From bmurch@seas.marine.usf.edu Thu Jul 3 20:57:36 2003 From: bmurch@seas.marine.usf.edu (Brock Murch) Date: Thu, 3 Jul 2003 15:57:36 -0400 Subject: [Mapserver-users] adding RASTER Layer In-Reply-To: <200307031008.36182.schut@sarvision.com> References: <200307021515.49112.bmurch@marine.usf.edu> <200307021550.35079.bmurch@marine.usf.edu> <200307031008.36182.schut@sarvision.com> Message-ID: <200307031557.37631.bmurch@marine.usf.edu> Vincent: I can give it a try, but I had the same problem using a png with a wld file as well. Perhaps I can recompile with --without-png too? Can I recompile to get some error messages put somewhere? I am also curious to find out how mapserv does its clean-up? How many files will it write to cache? Does it clean up? Thanks, Brock On Thursday 03 July 2003 4:08 am, Vincent Schut wrote: > Brock, > > don't know if it helps, but you might try to recompile your mapserver with > --without-tiff to force it to use GDAL's tiff reading instead of libtiff. > GDAL's tiff reading capabilities extend the normal one with all kinds of > geotiff features, etc. > > Cheers, > Vincent. > > On Wednesday 02 July 2003 21:50, Brock Murch wrote: > > Dylan: > > > > Thanks, but no luck. Whether I comment out the #OFFSITE line, or put in > > OFFSITE 0 0 0 still gives me no image other that the vertival border I > > spoke of earlier. > > > > Brock > > > > On Wednesday 02 July 2003 3:42 pm, Dylan Keon wrote: > > > Brock, > > > > > > Syntax for OFFSITE changed in 4.0. OFFSITE now takes an RGB value > > > instead of a single class index value. So, for example, if you're > > > trying to make black pixels transparent you would now use "OFFSITE 0 0 > > > 0" instead of "OFFSITE 0" (assuming class 0 was assigned to black > > > pixels). > > > > > > You could first try commenting out just the OFFSITE line to see if you > > > get anything... > > > > > > --Dylan > > > > > > Brock Murch wrote: > > > > Lo all: > > > > I seem to have stumbled into a problem. I am working throught the > > > > tutorial and have had much success, however, I can't seem to make the > > > > s2ex3 raster layer work. If I comment out the: > > > > > > > > #LAYER # Shaded Relief Raster > > > > # NAME "relief" > > > > # DATA "raster/shdrlfi020g_ugl.tif" > > > > # STATUS DEFAULT > > > > # TYPE RASTER > > > > # OFFSITE 0 > > > > #END > > > > > > > > it works fine. > > > > > > > > However, if the layer is place I get no image, just a small vertical > > > > line (probably the border). I am using the newest version of > > > > mapserver. > > > > > > > > mapserv -v > > > > MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > > > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > > > > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > > > > INPUT=SHAPEFILE > > > > > > > > gdal-config --formats > > > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted > > > > mem jdem envisat elas fit vrt usgsdem l1b nitf bmp hdf4 gif jpeg png > > > > > > > > I have tried it with my own data too. png format with a png world > > > > file following the above map file format with the same results. > > > > > > > > What am I missing? I'm not sure what to try next. Any thoughts would > > > > be greatly appreciated. > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From erich@museum.state.il.us Thu Jul 3 22:11:32 2003 From: erich@museum.state.il.us (Erich Schroeder) Date: Thu, 3 Jul 2003 16:11:32 -0500 (CDT) Subject: [Mapserver-users] PHPmapscript 4, color Message-ID: Hi, I'm confused in how I should be rewriting some phpmapscript for changing from version 3.5 to 4. In my application it looks to see if a polygon shapefile showing modern distribution of a taxon exists, and if so adds it as a layer. It then checks to see if the user wanted it to show, and if not turns the layer off. The old script looks like: //Check if modern distribution is present, and add if (file_exists("mammal/$TaxonLower.shp")) { $distpresent = TRUE; $layer = ms_newLayerObj($map); $layer->set("data","mammal/$TaxonLower"); $layer->set("name","moderndist"); $layer->set("type",MS_LAYER_POLYGON); $layer->set("status",MS_ON); if ($drawdist == "n") {$layer->set("status",MS_OFF);} $distcolor = $map->addColor(232,151,97); $class = ms_newClassObj($layer); $class->set("name","ModernDistribution"); $class->set("symbol",0); $class->set("color",$distcolor); $ok = $map->moveLayerUp(3); $ok = $map->moveLayerUp(3); $img = $map->draw(); } //end of modern dist And now of course it chokes on the $distcolor = $map->addColor(232,151,97); line. Am I supposed to now have a line like: $class->setRGB(232,151,97); Erich -- --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab email:erich(at)illinois.state.museum http://illinois.state.museum/ --------------------------------------------------------------------- From Zamil.Murji@divestco.com Thu Jul 3 22:16:18 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Thu, 3 Jul 2003 15:16:18 -0600 Subject: [Mapserver-users] Oracle Spatial Query Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A929@div-mx02.DIVESTCO.COM> Is it possible to use a layer from an oracle spatial db in accordance with a template file. Currently, if the data resides in a shapefile you can in query mode return a template file. The template file can have attributes from the associated .dbf file. I want to do the same for a layer from an oracle spatial db. So in the data string if i went: DATA "SELECT GEOM, WELL_ID FROM OILWELLS" I could refer to well_id in the template file. Can this be done? Some sample .map files would be great and template files as well. Thanks Zamil -----Original Message----- From: Zamil Murji Sent: Thursday, July 03, 2003 11:21 AM To: Smith, Michael ERDC-CRREL-NH; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Thanks, That gets rid of my connection issues, however, I still get the same message back from mapserver. Here is one record from the db (I got the SRID correct using shp2sdo): GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- SDO_GEOMETRY(2, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(-109.75084, 51.670937, -109.75084, 51.670937)) It is a point format, however, SDO_POINT is NULL. Will mapserver draw the SDO_ORDINATES instead? If not, where do I go from here. Once again is there any log of what queries the mapserver is running against the db? Thanks in advance, Zamil -----Original Message----- From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith@erdc.usace.army.mil] Sent: Thursday, July 03, 2003 4:16 AM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Having the SDO_POINT = NULL is correct if this is a non point shapefile. If the SRID is NULL don't include it in the data statement Use DATA "GEOMETRY FROM OILWELLS" You're problem is the Connecttion statement (CONNECTION "sdb/sdb@10.0.50.30") The correct format is user/password@tnsname You need to define a tnsname that points to the correct host, port and sid. There are various tools to do this (Oracle Net Manager, edit the tnsnames.ora) In the tnsnames.ora file you would have TNSNAME.DOMAIN.COM = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.50.30)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = your_service_name_here) ) ) Then you connection string would be CONNECTION "sdb/sdb@tnsname" Mike Smith email: michael.smith@erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Wednesday, July 02, 2003 5:50 PM To: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial After using the oracle tools to convert my shapefile into an oracle spatial format, this is what I have: SQL> select * from oilwells where gid = 1; GID ---------- GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- 1 SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY( -112.08855, 48.9998283, -112.08855, 48.9998283)) SQL> Notice that the SDO_POINT(X, Y, Z) column is NULL. Can mapserver handle this case. I guess the otn utilities utilize the last two columns. Also note that the SRID is null. When i draw my image, I get the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map definition for this layer. LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE oraclespatial CONNECTION "sdb/sdb@10.0.50.30" DATA "GEOMETRY FROM OILWELLS USING SRID NULL" # DUMP TRUE MAXSCALE 20 SYMBOLSCALE 2 CLASS SYMBOL 3 SIZE 12 MAXSIZE 28 MINSIZE 4 END END I am using mapserver 3.6.6 precompiled with oracle spatial support from the mapserver downloads page. Any help would be greatly appreciated. Thanks Zamil -----Original Message----- From: Zamil Murji Sent: Wednesday, July 02, 2003 2:36 PM To: bartvde@xs4all.nl; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] Oracle Spatial Thanks Bart for the quick reply... I was able to convert my shapefiles into oracle spatial format using some tools on otn. Using those tools they insert NULL as the SRID. Will this cause grief? According to the WIKI you had to specify a SRID otherwise you got a mapserver error. Is this correct? Is there any way to see what query mapserver will be running? Like a log file or something of the sort. In the connection string, does service refer to the ip address? Thanks in advance, Zamil -----Original Message----- From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] Sent: Wednesday, July 02, 2003 12:22 PM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Oracle Spatial Hi Zamil, otn (Oracle technology network) is the best site for Oracle information. Oracle itself has a tool to import shapefiles into Oracle Spatial. http://otn.oracle.com (you can register for free) The easiest to use is the built-in Oracle Spatial support. To use the support through OGR, you have to compile OGR against the Oracle client library. See also the mapserver wiki Oracle Spatial page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial Best regards, Bart On Wed, 2 Jul 2003 12:03:19 -0600, Zamil Murji wrote: > Hello list, > > I want to use MapServer to draw an Oracle Spatial layer, however, I have > never used Oracle Spatial. I have some questions I am sure you will be > able to answer. > > 1) What utilities are available to import a shapefile into an Oracle > Spatial database? Where can I download them from? 2) Need to know some > good sites on how to setup Oracle 8i with the Spatial component, and I > need a quick tutorial on how to create a table, alter a table, insert and > select from that table. Any good sites? > 3) I read on the newsgroup that there are two ways to go about this. One > is to use the built in oracle spatial support and the other is to use > ogr. I am running Apache on a windows 2000 box, what way is the best to > go, easiest to setup? > > Thanks for your help > Zamil > > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Wednesday, June 25, 2003 8:44 AM > To: mapserver-users@lists.gis.umn.edu > Cc: niklas "wörmann > Subject: Re: [Mapserver-users] running v4 beta as a command line tool > > > I've tested on MapServer 3.6.4 for Windows, using: > > $ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > > myresult.gif > > but if you try to open "myresult.gif" it crash... > > so I opened this file with a text editor and deleted the first two > lines(the headers), then it works! > > regards > > Eduardo Patto Kanegae > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > > > On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut > enscreveu: > >> De: Vincent Schut >> Data: Wed, 25 Jun 2003 14:43:41 +0200 >> Para: niklas wörmann , > users@lists.gis.umn.edu> >> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool >> >> On Wednesday 25 June 2003 10:06, niklas wörmann wrote: >> > Hi! >> > i am trying to track down the reason mapserver isn´t working on my >> windows >> > 2000 server. >> > >> > i remember seeing somewhere that it was indeed possible to run >> mapserver as >> > a command line tool, specifying a map file and an output file >> > >> > anyone know the syntax for this? >> >> On linux: >> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map" >> This will output headers + image data to stdout (on linux). Probably on >> windows your executable is not named mapserv but something like >> mapserv.exe? And use \ instead of / I think. >> >> you cannot just save the output as image file because the headers are in >> the output too. >> But you can see if it outputs something (lots of ascii: image), or gives >> an error. >> To see the image: type in your browser: >> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map >> change / in path to \ if on windows? >> >> Regards, >> -- ______________________________________ >> Vincent Schut >> Sarvision B.V. >> Wageningen, The Netherlands >> www.sarvision.com >> >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From keon@nacse.org Thu Jul 3 22:29:22 2003 From: keon@nacse.org (Dylan Keon) Date: Thu, 03 Jul 2003 14:29:22 -0700 Subject: [Mapserver-users] PHPmapscript 4, color In-Reply-To: References: Message-ID: <3F04A032.8060009@nacse.org> Erich, Check out the Migration Guide page on the Wiki. There are examples of color handling, as well as other changes to make when moving from 3.5 to 4.0. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide This should help (copied from the Wiki page): Most class parameter definitions are now handled by the new style object. For example, $classObj->set('color', $map->addColor(255,255,0)); $classObj->set('size', 18); is now implemented as $style = ms_newStyleObj($classObj); $style->color->setRGB(255,255,0); $style->set('size', 18); --Dylan Erich Schroeder wrote: > Hi, > I'm confused in how I should be rewriting some phpmapscript for changing > from version 3.5 to 4. > > In my application it looks to see if a polygon shapefile showing modern > distribution of a taxon exists, and if so adds it as a layer. It then > checks to see if the user wanted it to show, and if not turns the layer > off. > > The old script looks like: > > //Check if modern distribution is present, and add > if (file_exists("mammal/$TaxonLower.shp")) { > $distpresent = TRUE; > $layer = ms_newLayerObj($map); > $layer->set("data","mammal/$TaxonLower"); > $layer->set("name","moderndist"); > $layer->set("type",MS_LAYER_POLYGON); > $layer->set("status",MS_ON); > if ($drawdist == "n") {$layer->set("status",MS_OFF);} > $distcolor = $map->addColor(232,151,97); > $class = ms_newClassObj($layer); > $class->set("name","ModernDistribution"); > $class->set("symbol",0); > $class->set("color",$distcolor); > $ok = $map->moveLayerUp(3); > $ok = $map->moveLayerUp(3); > $img = $map->draw(); > } //end of modern dist > > And now of course it chokes on the > $distcolor = $map->addColor(232,151,97); > line. > > Am I supposed to now have a line like: > > $class->setRGB(232,151,97); > > Erich From elshayal@smartwebonline.com Fri Jul 4 02:55:26 2003 From: elshayal@smartwebonline.com (Mohamed Elshayal Smart) Date: Fri, 4 Jul 2003 04:55:26 +0300 Subject: [Mapserver-users] Query Message-ID: <001101c341cf$5e1c3b10$017efea9@mamafatma> This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C341E8.7C398B70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Sirs, I use the following and it works=20 mode=3Ditemnquery&qlayer=3Dlakes&item=3Darea&value=3D100 but I try to use the following expression but it does not work. mode=3Ditemnquery&qlayer=3Dlakes&item=3Darea&value>100&value<200 and how can I write expression statement in map file Thank you and best personal regards Mohamed Elshayal ------=_NextPart_000_000E_01C341E8.7C398B70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Sirs,
I use the following and it works =
 
mode=3Ditemnquery&qlayer=3Dlakes&item=3Darea&value=3D= 100
 
but I try to use the following =20 expression but it does not work.
 
mode=3Ditemnquery&qlayer=3Dlakes&item=3Darea&value&g= t;100&value<200
 
and how can I write expression = statement in map=20 file
 
Thank you and best personal = regards
Mohamed = Elshayal
------=_NextPart_000_000E_01C341E8.7C398B70-- From eduardo@linkgeo.com.br Fri Jul 4 02:22:15 2003 From: eduardo@linkgeo.com.br (Eduardo Patto Kanegae) Date: Thu, 3 Jul 2003 22:22:15 -0300 Subject: [Mapserver-users] Problems with ROSA Message-ID: <000201c341d7$46488e00$900cbec8@vcp.advcp.br> This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C341B1.8EEE8900 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi MapServerers I've recently published a MapServer application at = http://www.linkgeo.com.br/clickbrasil/ - with 2 templates ( 1 without = JAVA and the other with ROSA applet ), but there's something strange when using ROSA mode. In my development enviroment ( Windows XP Professional and MapServer = version 3.6.4 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = SUPPORTS=3DPROJ SUPPORTS=3DTTF SUPPORTS=3DWMS_SERVER = SUPPORTS=3DWMS_CLIENT INPUT=3DEPPL7 INPUT=3DOGR INPUT=3DGDAL = INPUT=3DSHAPEFILE ) the ROSA mode only works with Microsoft VM. But when = I run this same ROSA application at my internet enviroment( Red Hat = Linux 7.3 and MapServer version 3.6.6 OUTPUT=3DPNG OUTPUT=3DJPEG = OUTPUT=3DWBMP SUPPORTS=3DTTF INPUT=3DEPPL7 INPUT=3DSHAPEFILE ) it works = only with Sun Java Machine. And some users have been disclaiming , saying "when I enter Applet = version, I got nothing but a blank space". Is there a way of detecting VM installed at client's side or a way of = automaticlty setting right virtual machine for user? Or is better to put a inicial warning message? Thank you. Eduardo Patto Kanegae eduardo@linkgeo.com.br http://www.linkgeo.com.br ( Brasil ) ++++++++++++++++++++++++++ ClickBrasil - http://www.linkgeo.com.br/clickbrasil/=20 ------=_NextPart_000_000D_01C341B1.8EEE8900 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi MapServerers
 
I've recently published a MapServer = application at=20 http://www.linkgeo.com.br= /clickbrasil/=20 - with 2 templates ( 1 without JAVA and the other with ROSA applet=20 ),
 
but there's something strange when = using ROSA=20 mode.
 
In my development enviroment ( Windows = XP=20 Professional and MapServer version 3.6.4 OUTPUT=3DGIF OUTPUT=3DPNG = OUTPUT=3DJPEG=20 OUTPUT=3DWBMP SUPPORTS=3DPROJ SUPPORTS=3DTTF SUPPORTS=3DWMS_SERVER = SUPPORTS=3DWMS_CLIENT=20 INPUT=3DEPPL7 INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE ) the ROSA mode = only works with=20 Microsoft VM. But when I run this same ROSA application at my internet=20 enviroment( Red Hat Linux 7.3 and MapServer version 3.6.6 OUTPUT=3DPNG = OUTPUT=3DJPEG=20 OUTPUT=3DWBMP SUPPORTS=3DTTF INPUT=3DEPPL7 INPUT=3DSHAPEFILE ) it works = only with Sun=20 Java Machine.
 
And some users have been disclaiming , = saying "when=20 I enter Applet version, I got nothing but a blank space".
 
Is there a way of detecting VM = installed at=20 client's side or a way of automaticlty setting right virtual machine for = user?
 
Or is better to put a inicial warning=20 message?
 
Thank you.
 
Eduardo Patto Kanegae
eduardo@linkgeo.com.br<= /DIV>
http://www.linkgeo.com.br  ( = Brasil=20 )
++++++++++++++++++++++++++
ClickBrasil - http://www.linkgeo.com.br= /clickbrasil/=20
------=_NextPart_000_000D_01C341B1.8EEE8900-- From eduardo@linkgeo.com.br Fri Jul 4 02:59:38 2003 From: eduardo@linkgeo.com.br (Eduardo Patto Kanegae) Date: Thu, 3 Jul 2003 22:59:38 -0300 Subject: [Mapserver-users] North symbol embeded on Map Message-ID: <000601c341d7$4dec6d20$900cbec8@vcp.advcp.br> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C341B6.C74CD360 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there a way of puting a North-Arrow symbol inside the map? Eduardo ------=_NextPart_000_0009_01C341B6.C74CD360 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there a way of puting a North-Arrow = symbol=20 inside the map?
 
Eduardo
------=_NextPart_000_0009_01C341B6.C74CD360-- From palle@mail-online.dk Fri Jul 4 07:22:05 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Fri, 04 Jul 2003 08:22:05 +0200 Subject: [Mapserver-users] North symbol embeded on Map In-Reply-To: <000601c341d7$4dec6d20$900cbec8@vcp.advcp.br> References: <000601c341d7$4dec6d20$900cbec8@vcp.advcp.br> Message-ID: Try something like this ... SYMBOL NAME "n_arrow" TYPE pixmap IMAGE "images/nordpil6.gif" END ... LAYER NAME "n_arrow" STATUS DEFAULT TRANSFORM FALSE TYPE POINT FEATURE POINTS 650 80 END END CLASS SYMBOL "n_arrow" END END Adjust the feature points so that the north_arrow appears in the upper right corner (or where you want to put it). Since transform is false these are just pixel values. Best regards Palle Due Larsen Carl Bro GIS&IT -----Original Message----- From: "Eduardo Patto Kanegae" To: "mapserver-users" Date: Thu, 3 Jul 2003 22:59:38 -0300 Subject: [Mapserver-users] North symbol embeded on Map > Is there a way of puting a North-Arrow symbol inside the map? > > Eduardo > Få en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille konkurrence på nettet, og vind et gavekort på 50.000 kroner... KLIK HER: www.directoffice.dk/konkurrence From palle@mail-online.dk Fri Jul 4 07:41:27 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Fri, 04 Jul 2003 08:41:27 +0200 Subject: [Mapserver-users] North symbol embeded on Map In-Reply-To: References: <000601c341d7$4dec6d20$900cbec8@vcp.advcp.br> Message-ID: I have added this solution to the WikiFAQ at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FAQ Best regards Palle Due Larsen Carl Bro GIS&IT -----Original Message----- From: "Palle Due Larsen" To: "Eduardo Patto Kanegae" , "mapserver-users" Date: Fri, 04 Jul 2003 08:22:05 +0200 Subject: Re: [Mapserver-users] North symbol embeded on Map > Try something like this > > ... > > SYMBOL > NAME "n_arrow" > TYPE pixmap > IMAGE "images/nordpil6.gif" > END > > ... > > LAYER > NAME "n_arrow" > STATUS DEFAULT > TRANSFORM FALSE > TYPE POINT > FEATURE > POINTS 650 80 END > END > CLASS > SYMBOL "n_arrow" > END > END > > Adjust the feature points so that the north_arrow appears in the > upper > right corner (or where you want to put it). Since transform is false > these are just pixel values. > > Best regards > > Palle Due Larsen > Carl Bro GIS&IT > > -----Original Message----- > From: "Eduardo Patto Kanegae" > To: "mapserver-users" > Date: Thu, 3 Jul 2003 22:59:38 -0300 > Subject: [Mapserver-users] North symbol embeded on Map > > > Is there a way of puting a North-Arrow symbol inside the map? > > > > Eduardo > > > > Få en gratis emailkonto her: www.mail-online.dk > ----------------------------------------------- > Deltag i en lille konkurrence på nettet, og > vind et gavekort på 50.000 kroner... > KLIK HER: www.directoffice.dk/konkurrence > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > Få en gratis emailkonto her: www.mail-online.dk > ----------------------------------------------- > Deltag i en lille konkurrence på nettet, og > vind et gavekort på 50.000 kroner... > KLIK HER: www.directoffice.dk/konkurrence > From braulioen@ono.com Fri Jul 4 09:04:38 2003 From: braulioen@ono.com (braulioen@ono.com) Date: Fri, 04 Jul 2003 10:04:38 +0200 Subject: [Mapserver-users] ECW in Mapscript 4.0 Message-ID: Hi at all, I'm using now the version 4.0 of Mapscript and the layer Raster ECW does not visualize. I've installed the ECW dll's that accompany php_mapscript_40.dll and the rest of dll's. The configuration of my file MAP has not changed, follows just as with previous version 3.6. Which can be the problem? Thanks in advance. Braulio. From sarawut@ait.ac.th Fri Jul 4 09:08:05 2003 From: sarawut@ait.ac.th (Sarawut Ninsawat) Date: Fri, 04 Jul 2003 15:08:05 +0700 Subject: [Mapserver-users] WMS go Blank image Message-ID: <5.1.1.6.2.20030704150140.00aa2408@mail.ait.ac.th> Dear all I try to test one machine with server and client (but difference map file) thaiwms.map is for WMS Server and thai.wms for main map to connect to server. But blank image map, no scale ,no referenced map, nothing happened in temp directory. Seem like my mapserver can not be client because I can connect to this computer by other computer with same below CONNECTION parameter on thaiwms.map file. LAYER NAME "color05" METADATA wms_title "Test" wms_srs "EPSG:4240" END TYPE RASTER STATUS off CONNECTIONTYPE WMS CONNECTION "http://127.0.0.1/cgi-bin/thaiwms?VERSION=1.1.0&LAYERS=NOAA01&Format=png" projection "init=EPSG:4240" #Projection longlat end END # layer From m.spring@gmx.de Fri Jul 4 08:52:29 2003 From: m.spring@gmx.de (m.spring@gmx.de) Date: Fri, 04 Jul 2003 09:52:29 +0200 Subject: [Mapserver-users] Re: [Mapserver-dev] Proposal for mapfile IO changes for MapServer 4.1 In-Reply-To: (Steve Lime's message of "Thu, 03 Jul 2003 14:24:59 -0500") References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi list, up to now I've only been lurking you wizards and happily using mapserver... > crap removed (it could also parse an XML version with very little > change). What would have to be added is logic in the various loading So this could be a tremendous advantage for everybody concerned with parsing of existing mapfiles, automatic mapfile creation, implementing editor support for mapfiles etc. I would be only too happy to see this happen soon ;-) and despite beeing 'only' a simple perl monk I would gladly offer any help I am capable of to implement this. Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE/BTI9xxUzQSse11ARAjneAJ9b3uPh8Gn8zUFKg04YKRiAYpfNbQCgg/ru DX/ZxIdgh/LZEf0RVRYRCbw= =Motm -----END PGP SIGNATURE----- From nwoe@privat.utfors.se Fri Jul 4 12:08:26 2003 From: nwoe@privat.utfors.se (niklas wörmann) Date: Fri, 4 Jul 2003 13:08:26 +0200 Subject: [Mapserver-users] OT iis 5 drives me nuts References: Message-ID: <003b01c3421c$9c417980$8300a8c0@big> Hi! Sorry for the off topic... i have finally got mapserver installed on my win 2000 box. everything seems to work fine if i use the local path for defining the map file like; http://192.168.0.133/cgi-bin/mapserv4.exe?map=c:/inetpub/wwwroot\ms_workshop \example1.map&mode=map but i cant for the life of me, get iis to return the map file when i access it like http://192.168.0.133/ms_workshop/example1.map file not found, although i can see it fine (directory browsing is turned on ) although http://192.168.0.133/ms_workshop/example1.txt will work fine (note the different extension here) somehow some security restricion hidden somewhere in the bowels of microsofts software is stopping the server from serving files with .map extensions. anyone? niklas wörmann älvsjö sweden From Irvan@pln-jabar.co.id Fri Jul 4 07:48:07 2003 From: Irvan@pln-jabar.co.id (Irvan Kristianto) Date: Fri, 4 Jul 2003 13:48:07 +0700 Subject: [Mapserver-users] mapinfo .tab on mapserver Message-ID: <4876C605FBF6D611BF48000629132BCB1F8C37@DISJABARMAIL> hello guys ... OK prakhov, that's work well ... thanks a lot. then i start to make mapfile. first time its done successfully. first mapfile work very well. all controls(zoomin,zoomout,full extent, center) all works. but second mapfile (diferent .Tab file) only works on first appearance. all controls(zoomin,zoomout,full extent, center) not working (map image not showing) please, whats happen to my mapfile?? first map:---------------------------------------------- MAP NAME "DEMO" STATUS ON EXTENT 463549.689692 4641034.982725 685728.962267 4820458.629079 SIZE 400 400 SHAPEPATH "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data" IMAGECOLOR 255 255 255 UNITS METERS WEB MINSCALE 20000 MAXSCALE 50000000 IMAGEPATH "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/tmp/ms_tmp/" IMAGEURL "/gis/maplab/tmp/ms_tmp/" LOG "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/log/gmap.log" END LAYER NAME "hipo" STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/hipsometric/E EHipsometria.TAB" TYPE POLYGON STYLEITEM "AUTO" CLASS NAME "hipo" COLOR 100 100 100 OUTLINECOLOR 255 0 0 END END LAYER NAME "wistate00" STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_countr y/Euskalerria.TAB" TYPE POLYGON #STYLEITEM "AUTO" CLASS NAME "wistate00" OUTLINECOLOR 255 0 0 END END END second map:------------------------------------------------ MAP NAME "DEMO" STATUS ON EXTENT 2.145567 48.688366 2.615487 49.012394 SIZE 400 400 SHAPEPATH "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data" #IMAGECOLOR 255 255 255 UNITS METERS WEB MINSCALE 20000 MAXSCALE 50000000 IMAGEPATH "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/tmp/ms_tmp/" IMAGEURL "/gis/maplab/tmp/ms_tmp/" END LAYER NAME "wistate00" STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "E:\Program Files\Apache Group\Apache\htdocs\gis\maplab\projects\apps\demo\data\mapinfo\paris\MpaSabe 200\Departement.TAB,Departement" TYPE POLYGON #STYLEITEM "AUTO" CLASS NAME "wistate00" OUTLINECOLOR 255 0 0 END END END -----Original Message----- From: Èëüÿ À. Ïðàõîâ [mailto:prakhov@ggc.nnov.ru] Sent: Juli 03 2003 18:20 To: Irvan Kristianto Cc: mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] mapinfo .tab on mapserver Try to use this: STATUS default CONNECTION "E:/Program Files/Apache Group/Apache/htdocs/gis/maplab/projects/apps/demo/data/mapinfo/basque_countr y/Euskalerria.TAB" From vatsavai@cs.umn.edu Sun Jul 6 03:08:33 2003 From: vatsavai@cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 5 Jul 2003 21:08:33 -0500 (CDT) Subject: [Mapserver-users] emergency maintenance notice Message-ID: <200307060208.VAA16160@pluto.cs.umn.edu> Mapserver-users, The mapserver web site and the mail lists will be down temporarily while we perform some emergencey maintenance. These services should be backup sometime July 6th. CVS services continue to be available. Hope you are having a good weekend. Thanks Raju ---- From assefa@dmsolutions.ca Fri Jul 4 15:30:47 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 04 Jul 2003 10:30:47 -0400 Subject: [Mapserver-users] Re: Gmap under mapserver 4 References: <1057328981.21155.23.camel@localhost.localdomain> Message-ID: <3F058F97.70007@dmsolutions.ca> Try to do $oLayer->open() with no argument. This changed between 3.6 and 4.0. Later Bart van Heijningen wrote: >Hi, > >I wonder if anyone here can help me with the next question. >I am using mapserver 4 and try to get the gmap demo to work. All seems >fine but I cannot seem to be able to get the querying right. >It simply does not work. >Maybe someone knows what the problem is? >Somehow it no longer seems to be happy with the dbf file under >Mapserver4. >Looks like it does not like the amount of return fields from the query. >Error: > >Warning: Wrong parameter count for open() in >/www/htdocs/atmspoc/htdocs/poc_gmap75.php on line 698 > >Fatal error: MapServer Error in msLayerGetShape(): Shapefile layer has >not been opened. in /www/htdocs/atmspoc/htdocs/poc_gmap75.php on line >729 > >Here is the gmap file the last line ¨$oLayer->open($gpoMap->shapepath);¨ >produces the error. > > > for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) > > { > > $oLayer = $gpoMap->GetLayer($iLayer); > > > > $numResults = $oLayer->getNumResults(); > > > > if ($numResults == 0) > > continue; // No results in this layer > > > > // Open layer's table... take the list of fields to display >from > > // the "HEADERRESULT_FIELDS" metadata in the layer object. > > $oLayer->open($gpoMap->shapepath); > > > > $selFields = explode(" ", >$oLayer->getMetaData("RESULT_FIELDS")); > > > > > >Thanks, >Bart > > > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From chewbizz@hotmail.com Fri Jul 4 12:37:18 2003 From: chewbizz@hotmail.com (W. Steph) Date: Fri, 04 Jul 2003 11:37:18 +0000 Subject: [Mapserver-users] PhpMapscript - fields types Message-ID: Hello list ! I can't find a way to get the types of the fields of shape objects. I need to know if each field is a string (or varchar...) or an integer, or a date. I know i can use something like this : $fieldValue = $myShapeObj->values[$fieldName]; if (is_string($fieldValue)) {...} if (is_int($fieldValue)) {...} But doing this way, I won't find if the field is a date (I think is_string will return true with a date) Maybe there's a solution with a layer object... I don't know... I didn't find any infos in mapscript reference. Any ideas ??? Thank you Steph _________________________________________________________________ Découvrez les nouvelles émoticônes animées de http://g.msn.fr/FR1001/866 MSN Messenger nouvelle formule From bartvde@xs4all.nl Fri Jul 4 18:03:28 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Fri, 04 Jul 2003 19:03:28 +0200 Subject: [mapserver-users] MS_ERRORFILE Message-ID: Hi list, I cannot seem to get error info out of mapserver. I work on Windows 2000 Server and Apache 2.0.45. I have set the environment variable MS_ERRORFILE to several values: -an existing file in the cgi-bin directory (where mapserv.exe resides) -stderr But nothing is written into the file nor the error log from Apache. I do get the GDAL error info in the error log from Apache, like e.g. ERROR 1: ECW error output from set JSERV=D:\oracle\ora92/Apache/Jserv/conf LOGONSERVER=\\EUROPA MS_ERRORFILE=stderr NUMBER_OF_PROCESSORS=2 Does anybody have an idea what could be wrong? Or experienced similar problems? Thanks, Bart From mapserve@techie.com Sat Jul 5 08:47:09 2003 From: mapserve@techie.com (Devrim Catak) Date: Sat, 05 Jul 2003 02:47:09 -0500 Subject: [Mapserver-users] libTiff error Message-ID: <20030705074709.9297.qmail@mail.com> Hello ; I'm obtaining following messages after trying to run 'make test' command in a libtiff installation procedure under SuSe 8.2 : test_pics.sh pics/*.tiff /bin/sh line1:test_pics.sh Command not found make:***[test] Error 127 Thanks for anything helpful. Devrim -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers From twan@twansoft.com Fri Jul 4 10:25:27 2003 From: twan@twansoft.com (Twan Kogels) Date: Fri, 04 Jul 2003 11:25:27 +0200 Subject: [Mapserver-users] query postgis layer (boolean conversion problem) Message-ID: <5.0.0.25.2.20030704110915.0188d1c0@pop.xs4all.nl> Hello, 2 days ago i posted a msg "bug #316 and ms4 missing functions" to this mailinglist. Bug #316 seems to have been fixed in the new mapserver version. But now i think i've found a new bug: I try to query a postgis layer with mapscript, with the standard functions. When the table which you query contains a boolean column, the a error appears. When i remove the boolean column the error dissapears. When querying a table with a boolean column i get the error: ============ MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT id::text,adlo1::text,adst1::text,adhu1::text,adto1::text,adpo1::text,adwo1::text,adwt1::text,adlo1_dg::text,adst1_dg::text,adhu1_dg::text,adto1_dg::text,adpo1_dg::text,adwo1_dg::text,adwt1_dg::text,adlo1_dsk::text,adst1_dsk::text,adhu1_dsk::text,adto1_dsk::text,adpo1_dsk::text,adwo1_dsk::text,adwt1_dsk::text,keurtype::text,site::text, test::text, asbinary(force_collection(force_2d(the_geom)),'NDR') from lg WHERE OID = 574917 -ERROR: Cannot cast type boolean to text More Help: ============ In this case column with name "test" is the boolean column. When i remove the "test" column, everything goes oke and the correct data is returned without a error. I'm using the new postgresql 7.3. I read in the docs that there where some changes with the boolean type. For example i cannot insert a empty string ('') in a boolean column anymore (this was possible in other versions). When looking at mappostgis.c (line 1118) (mapserver-4.0b, also in cvs version) i see the following code: =========== for (t=0;tnumitems; t++) { sprintf(temp,"%s::text,",layer->items[t]); strcat(columns_wanted,temp); } =========== I suspect this converts the column value to text, this goes oke with non boolean columns, but not with boolean columns. Is this really a bug, or am i just doing something terrible wrong? Best regards, Twan Kogels From bart@atsence.nl Fri Jul 4 15:29:37 2003 From: bart@atsence.nl (Bart van Heijningen) Date: 04 Jul 2003 16:29:37 +0200 Subject: [Mapserver-users] Gmap under mapserver 4 Message-ID: <1057328981.21155.23.camel@localhost.localdomain> Hi, I wonder if anyone here can help me with the next question. I am using mapserver 4 and try to get the gmap demo to work. All seems fine but I cannot seem to be able to get the querying right. It simply does not work. Maybe someone knows what the problem is? Somehow it no longer seems to be happy with the dbf file under Mapserver4. Looks like it does not like the amount of return fields from the query. Error: Warning: Wrong parameter count for open() in /www/htdocs/atmspoc/htdocs/poc_gmap75.php on line 698 Fatal error: MapServer Error in msLayerGetShape(): Shapefile layer has not been opened. in /www/htdocs/atmspoc/htdocs/poc_gmap75.php on line 729 Here is the gmap file the last line ¨$oLayer->open($gpoMap->shapepath);¨ produces the error. for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) { $oLayer = $gpoMap->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); if ($numResults == 0) continue; // No results in this layer // Open layer's table... take the list of fields to display from // the "HEADERRESULT_FIELDS" metadata in the layer object. $oLayer->open($gpoMap->shapepath); $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); Thanks, Bart From bartvde@xs4all.nl Fri Jul 4 19:05:03 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Fri, 04 Jul 2003 20:05:03 +0200 Subject: [mapserver-users] MS_ERRORFILE now works Message-ID: Hi list, I already found the problem. It seems Apache does NOT pass environment variables from Windows to CGI's by default. Now I use SetEnv MS_ERRORFILE "stderr" in the httpd.conf and the error messages come perfectly into the Apache error log. Great. Also good to finally see the Oracle Spatial SQL statements again :-). Best regards, Bart From twan@twansoft.com Sun Jul 6 10:50:48 2003 From: twan@twansoft.com (Twan Kogels) Date: Sun, 06 Jul 2003 11:50:48 +0200 Subject: [Mapserver-users] query postgis layer (boolean conversion problem) Message-ID: <5.0.0.25.2.20030706114957.0306af98@pop.xs4all.nl> Hello, 2 days ago i posted a msg "bug #316 and ms4 missing functions" to this mailinglist. Bug #316 seems to have been fixed in the new mapserver version. But now i think i've found a new bug: I try to query a postgis layer with mapscript, with the standard functions. When the table which you query contains a boolean column, the a error appears. When i remove the boolean column the error dissapears. When querying a table with a boolean column i get the error: ============ MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT id::text,adlo1::text,adst1::text,adhu1::text,adto1::text,adpo1::text,adwo1::text,adwt1::text,adlo1_dg::text,adst1_dg::text,adhu1_dg::text,adto1_dg::text,adpo1_dg::text,adwo1_dg::text,adwt1_dg::text,adlo1_dsk::text,adst1_dsk::text,adhu1_dsk::text,adto1_dsk::text,adpo1_dsk::text,adwo1_dsk::text,adwt1_dsk::text,keurtype::text,site::text, test::text, asbinary(force_collection(force_2d(the_geom)),'NDR') from lg WHERE OID = 574917 -ERROR: Cannot cast type boolean to text More Help: ============ In this case column with name "test" is the boolean column. When i remove the "test" column, everything goes oke and the correct data is returned without a error. I'm using the new postgresql 7.3. I read in the docs that there where some changes with the boolean type. For example i cannot insert a empty string ('') in a boolean column anymore (this was possible in other versions). When looking at mappostgis.c (line 1118) (mapserver-4.0b, also in cvs version) i see the following code: =========== for (t=0;tnumitems; t++) { sprintf(temp,"%s::text,",layer->items[t]); strcat(columns_wanted,temp); } =========== I suspect this converts the column value to text, this goes oke with non boolean columns, but not with boolean columns. Is this really a bug, or am i just doing something terrible wrong? Best regards, Twan Kogels (i hope this message doesn't appear twice, cause i sended it this friday, but the server went down) From pramsey@refractions.net Fri Jul 4 16:39:35 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Fri, 04 Jul 2003 08:39:35 -0700 Subject: [Mapserver-users] ESRI San Diego Message-ID: <3F059FB7.2050000@refractions.net> I know it seems odd, even perverse, but I am going to the ESRI Users Conference next week. I wonder if anyone else in the open source GIS world is going? If you are, please drop me a line so we can do a group event of some sort (Fred's serves half price marguaritas between 4 and 5!) and talk about how to vanquish the Beast from Redlands. :) Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From gerry.creager@tamu.edu Sun Jul 6 09:54:28 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Sun, 06 Jul 2003 03:54:28 -0500 Subject: [Mapserver-users] New anomoly Message-ID: <3F07E3C4.9040509@tamu.edu> Anyone got any ideas? MS3.7 has been running flawlessly for a couple of months. I just started seeing this error: Server error! The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: mapserv If you think this is a server error, please contact the webmaster Error 500 mesonet.tamu.edu Sun 06 Jul 2003 03:52:41 AM CDT Apache/2.0.40 (Red Hat Linux) http://mesonet.tamu.edu -- Gerry Creager -- gerry.creager@tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From woodbri@swoodbridge.com Sun Jul 6 16:07:34 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sun, 06 Jul 2003 11:07:34 -0400 Subject: [Mapserver-users] Gmap under mapserver 4 In-Reply-To: <1057328981.21155.23.camel@localhost.localdomain> Message-ID: <3F0802F6.717.9D93F27D@localhost> Someone just posted a response this same question. Maybe it was on the maplab list. Anyway, I thing you need to change the line to read: $oLayer->open(); The parameter is no longer used as the info is passed via the Layer object. -Steve W. On 4 Jul 2003 at 16:29, Bart van Heijningen wrote: > Hi, > > I wonder if anyone here can help me with the next question. > I am using mapserver 4 and try to get the gmap demo to work. All seems > fine but I cannot seem to be able to get the querying right. It simply > does not work. Maybe someone knows what the problem is? Somehow it no > longer seems to be happy with the dbf file under Mapserver4. Looks > like it does not like the amount of return fields from the query. > Error: > > Warning: Wrong parameter count for open() in > /www/htdocs/atmspoc/htdocs/poc_gmap75.php on line 698 > > Fatal error: MapServer Error in msLayerGetShape(): Shapefile layer has > not been opened. in /www/htdocs/atmspoc/htdocs/poc_gmap75.php on line > 729 > > Here is the gmap file the last line > ¨$oLayer->open($gpoMap->shapepath);¨ produces the error. > > > for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) > { > $oLayer = $gpoMap->GetLayer($iLayer); > > $numResults = $oLayer->getNumResults(); > > if ($numResults == 0) > continue; // No results in this layer > > // Open layer's table... take the list of fields to display > from > // the "HEADERRESULT_FIELDS" metadata in the layer object. > $oLayer->open($gpoMap->shapepath); > > $selFields = explode(" ", > $oLayer->getMetaData("RESULT_FIELDS")); > > > > Thanks, > Bart > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From poff@sixbit.org Sun Jul 6 16:29:43 2003 From: poff@sixbit.org (poff) Date: Sun, 6 Jul 2003 17:29:43 +0200 Subject: [Mapserver-users] Wrapping a RASTER layer around Message-ID: <20030706152943.GA13613@freeshell.org> I wonder if there is a simple fix for this. When panning on a map, is there any way to "wrap around" the data so that, for example on the world, if a user was to pan right of japan, they would end up seeing the US instead of lots of blank space where the rectangular data ends? I could of course do this "manually" by checking the extent in my script and changing it, but is there another (automatic) behaviour that I'm missing out on? Maybe I could just do a if(extent>map_extent); calc which way they should be redirected and do it; fi Thanks for any ideas, -- poff@sixbit.org SDF Public Access UNIX System - http://sdf.lonestar.org From Paul Hastings" is it just me in bangkok or is the mapserver site down. i keep getting: Gateway Timeout The following error occurred: A gateway timeout occurred. The server is unreachable. Retry the request. (GATEWAY_TIMEOUT) ------------------------------------- Paul Hastings paul@sustainableGIS.com CTO Sustainable GIS Member Team Macromedia (ColdFusion) From assefa@dmsolutions.ca Fri Jul 4 14:23:58 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 04 Jul 2003 09:23:58 -0400 Subject: [Mapserver-users] ECW in Mapscript 4.0 References: Message-ID: <3F057FEE.1070007@dmsolutions.ca> I have just tested the php_mapscript_40.dll with a couple of ECW file and I was able to display them properly. Could you contactes me off the list, I will send you the tests that I made and see if you have the same results. Later, braulioen@ono.com wrote: >Hi at all, > > I'm using now the version 4.0 of Mapscript and the layer Raster >ECW does not visualize. I've installed the ECW dll's that accompany >php_mapscript_40.dll and the rest of dll's. > > The configuration of my file MAP has not changed, follows just as >with previous version 3.6. Which can be the problem? > >Thanks in advance. >Braulio. > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri@swoodbridge.com Sun Jul 6 17:14:36 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sun, 06 Jul 2003 12:14:36 -0400 Subject: [Mapserver-users] Wrapping a RASTER layer around In-Reply-To: <20030706152943.GA13613@freeshell.org> Message-ID: <3F0812AC.29258.9DD15322@localhost> I don't think it can be done easily. The problem is a little more complicated in that the coordinate space goes from 0 degrees at Greenwich to plus/minus 180 as you travel east or west so the space to the right of Japan is > 180 E which is not the same as < -180 West! OK well is it the same space the the math is not the same and all the code would have to do tests and transforms to normalize the data to the display box or alternatively one would have to recognize the the image space is really two separate images that would both need to be rendered on to part of the image, one for that which is > 180 E and the other that is < -180 W. This could also get more complicated if the user kept pan right forever so you would have to decide when to renormalize miny maxy values as you wrap around the 360 degrees mark. Then again there may be an easier way that I haven't thought about. -Steve W. On 6 Jul 2003 at 17:29, poff wrote: > I wonder if there is a simple fix for this. > > When panning on a map, is there any way to "wrap around" the data so > that, for example on the world, if a user was to pan right of japan, > they would end up seeing the US instead of lots of blank space where > the rectangular data ends? > > I could of course do this "manually" by checking the extent in my > script and changing it, but is there another (automatic) behaviour > that I'm missing out on? Maybe I could just do a > if(extent>map_extent); calc which way they should be redirected and do > it; fi > > Thanks for any ideas, > -- > poff@sixbit.org > SDF Public Access UNIX System - http://sdf.lonestar.org > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From eduardo@linkgeo.com.br Sun Jul 6 18:00:23 2003 From: eduardo@linkgeo.com.br (Eduardo Patto Kanegae) Date: Sun, 6 Jul 2003 14:00:23 -0300 Subject: [Mapserver-users] [off-topic] Rounding decimal places Message-ID: <008201c343e0$19170460$9664cec8@vcp.advcp.br> This is a multi-part message in MIME format. ------=_NextPart_000_007F_01C343C6.F21AE3E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable When I do a query, MapServer template pages return values like 87234.000 but this "zeros" aren't necessary. Is there a way of not displaying these ones? Eduardo ------=_NextPart_000_007F_01C343C6.F21AE3E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
When I do a query, MapServer template = pages return=20 values like
 
87234.000
 
but this "zeros" aren't = necessary.
 
Is there a way of not displaying these=20 ones?
 
Eduardo
------=_NextPart_000_007F_01C343C6.F21AE3E0-- From bartvde@xs4all.nl Sun Jul 6 18:18:29 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sun, 06 Jul 2003 19:18:29 +0200 Subject: [mapserver-users] huge performance problem with ECW In-Reply-To: <3F04A5E5.4010900@pobox.com> References: <3F04A5E5.4010900@pobox.com> Message-ID: Hi Frank, list, I think I have tackled the problem. I was requesting an image on the verge/margin of the pixel size of the ECW file (1.5 m). If I adjust my boundingbox just a little bit I am on the fast side of the medal again. I saw some postings on the mailing list from a year ago that mapserver then returned a black image when requesting an image with pixels smaller than the ECW pixel size. Question: how can I prevent users from requesting an image through WMS in which the pixel size is smaller than the pixel size of the original image? And is it a good idea to have this situation in mapserver instead of the black image when you get big performance issues instead? image and bbox info: x: 120630.915462629 - 121965.084537371 = +-1335 m y: 487143.164317804 - 487670.835682196 = +-527 m w: 890 pixels h: 352 pixels pixel size 1.5 m. Best regards, Bart On Thu, 03 Jul 2003 17:53:41 -0400, Frank Warmerdam wrote: > Bart van den Eijnden wrote: >> Hi all, >> >> I have a big problem when I zoom in to a high level on a big ECW file. >> The file is 4 Gb. I also have the same file in tiles of approximately 1 >> Gb. >> >> When the boundingbox is (units is meters): >> >> bbox=171760,449736,173257,451421 (So approximately 1500 x 1700 m) >> The image takes less than 1 second to be created and memory usage on the >> server of mapserv.exe is 6 Mb. >> >> bbox=171760,450736,172257,451421 (So approximately 500 x 700 m) >> The image takes more than 34 second to be created and memory usage on >> the server of mapserv.exe is more than 50 Mb. >> WITHOUT TILES: almost 100 Mb memory and more than 50 seconds to render >> image!! >> >> Can anybody help? Is this normal behaviour? > > Bart, > > This should not happen. I am not sure how to go about debugging the > issue > though since the file is clearly not easily transported over the network. > I could try to talk you through some debugging options at your end, or I > could try to reproduce the problem here by creating a similarly > configured > file. > > Could you email me the output of the gdalinfo program run against this > file? > > Best regards, > -- From sdteffen@web.de Sun Jul 6 20:03:38 2003 From: sdteffen@web.de (Steffen Macke) Date: Sun, 6 Jul 2003 22:03:38 +0300 Subject: [Mapserver-users] Tileindex shapefiles and labels Message-ID: <200307062203.39048.sdteffen@web.de> Hello All, we are having problems with tiled shapefiles and labels: The labels (diameter of a pipe) are displayed only for the first shapefile in the tileindex, for all other tiles we get "0.0" instead of the diameters. Is this a known problem? Best Regards Steffen Macke From franck@sopac.org Sun Jul 6 11:26:24 2003 From: franck@sopac.org (Franck Martin) Date: Sun, 06 Jul 2003 22:26:24 +1200 Subject: [Mapserver-users] Problem with Mapserver 4 / regex in loadMapFile In-Reply-To: <4876C605FBF6D611BF48000629132BCB1F8C37@DISJABARMAIL> References: <4876C605FBF6D611BF48000629132BCB1F8C37@DISJABARMAIL> Message-ID: <3F07F950.10209@sopac.org> Hi, I have compiled and used without problem MS 3.6.6 when I use the same options for compilation for MS 3.7 (aka 4.0 beta) I have an error when I load the map. The error message is cannot load mapfile(LC_MESSAGE). It seems overflow problem. I have traced it back to the function loadMapFile and it seems coming from a regex function which tries to compare the file to a list of authorised file extension... I don't know why the behavior is different from MS 3.6.6 Anybody can help me here, as I want to load 24bits high resolution images. Cheers Franck From gerry.creager@tamu.edu Mon Jul 7 03:04:31 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Sun, 06 Jul 2003 21:04:31 -0500 Subject: [Mapserver-users] New anomoly In-Reply-To: <3F07E3C4.9040509@tamu.edu> References: <3F07E3C4.9040509@tamu.edu> Message-ID: <3F08D52F.7030709@tamu.edu> Thanks to Steve Lime, I found my error. A projection error in the mapfile. The onset of this one was still a little puzzling, but I found where I'd screwed up. gerry Gerry Creager N5JXS wrote: > Anyone got any ideas? MS3.7 has been running flawlessly for a couple of > months. I just started seeing this error: > > Server error! > > The server encountered an internal error and was unable to complete > your request. > > Error message: > Premature end of script headers: mapserv > > If you think this is a server error, please contact the webmaster > > Error 500 > > mesonet.tamu.edu > Sun 06 Jul 2003 03:52:41 AM CDT > Apache/2.0.40 (Red Hat Linux) > > > http://mesonet.tamu.edu -- Gerry Creager -- gerry.creager@tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From morissette@dmsolutions.ca Mon Jul 7 03:19:21 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Sun, 06 Jul 2003 22:19:21 -0400 Subject: [Mapserver-users] Tileindex shapefiles and labels References: <200307062203.39048.sdteffen@web.de> Message-ID: <3F08D8A9.C66BF3F6@dmsolutions.ca> Steffen Macke wrote: > > we are having problems with tiled shapefiles and labels: > > The labels (diameter of a pipe) are displayed only for the > first shapefile in the tileindex, for all other tiles we get > "0.0" instead of the diameters. Is this a known problem? > Could it be that your tiles do not all contain the exact same set of attribute fields? In a tiled layer, all the shapefiles MUST have the exact same set of attribute fields and the fields must be in the same order in every file. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From franck@sopac.org Mon Jul 7 04:00:54 2003 From: franck@sopac.org (Franck Martin) Date: 07 Jul 2003 15:00:54 +1200 Subject: [Mapserver-users] Problem with Mapserver 4 / regex in loadMapFile (FIXED) In-Reply-To: <3F07F950.10209@sopac.org> References: <4876C605FBF6D611BF48000629132BCB1F8C37@DISJABARMAIL> <3F07F950.10209@sopac.org> Message-ID: <1057546854.2989.70.camel@localhost> --=-D0pl64wiKB+o8FV5sV/Q Content-Type: text/plain Content-Transfer-Encoding: 7bit I modified msEvalRegex in mapfile.c as follows and now it works... I use a regex_t *re instead of a regex_t re. int msEvalRegex(char *e, char *s) { regex_t *re; if(!e || !s) return(MS_FALSE); re=malloc(sizeof(regex_t)); if(regcomp(re, e, REG_EXTENDED||REG_NOSUB) != 0) { regfree(re); msSetError(MS_REGEXERR, "Failed to compile expression (%s).", "msEvalRegex()", e); return(MS_FALSE); } if(regexec(re, s, 0, NULL, 0) != 0) { // no match regfree(re); msSetError(MS_REGEXERR, "String (%s) failed expression test.", "msEvalRegex()", s); return(MS_FALSE); } regfree(re); return(MS_TRUE); } -- Franck Martin SOPAC --=-D0pl64wiKB+o8FV5sV/Q Content-Type: text/html; charset=utf-8 I modified msEvalRegex in mapfile.c as follows and now it works... I use a regex_t *re instead of a regex_t re.

int msEvalRegex(char *e, char *s) {
  regex_t *re;

  if(!e || !s) return(MS_FALSE);
  re=malloc(sizeof(regex_t));
  if(regcomp(re, e, REG_EXTENDED||REG_NOSUB) != 0) {
    regfree(re);
    msSetError(MS_REGEXERR, "Failed to compile expression (%s).", "msEvalRegex()", e);  
    return(MS_FALSE);
  }
  if(regexec(re, s, 0, NULL, 0) != 0) { // no match
    regfree(re);
    msSetError(MS_REGEXERR, "String (%s) failed expression test.", "msEvalRegex()", s);
    return(MS_FALSE);
  }
  regfree(re);

  return(MS_TRUE);
}


--
Franck Martin <franck@sopac.org>
SOPAC
--=-D0pl64wiKB+o8FV5sV/Q-- From novalet@yahoo.com.cn Mon Jul 7 12:51:05 2003 From: novalet@yahoo.com.cn (=?gb2312?q?Chen=20Fu?=) Date: Mon, 7 Jul 2003 19:51:05 +0800 (CST) Subject: [Mapserver-users] can't connect postgis Message-ID: <20030707115105.85962.qmail@web15206.mail.bjs.yahoo.com> Hi! I have some troubles in connecting postgis. As a newbie , i don't know what's up :< PostGis seems work fine in psql, i manually insert some geometry data. chenfu=# select * from test; id | name | geom ----+--------+------------------------------------ 1 | geom 1 | SRID=-1;POINT(1 1) 2 | geom 2 | SRID=-1;LINESTRING(1 2,2 3) 3 | geom 3 | SRID=-1;POLYGON((2 1,3 1,3 3,2 1)) the database call chenfu and user is postgres, password is also postgres. (I confirm password several time after i find connection failed) I build mapserver with postgis. [root@cbers mapserver-4.0b]# ./shp2img -v MapServer version 4.0-beta1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE Then I try a simplest map file MAP NAME APPLE STATUS ON EXTENT -10 -10 10 10 UNITS METERS SIZE 100 100 IMAGETYPE PNG LAYER CONNECTIONTYPE postgis NAME "test" CONNECTION "user=postgres password=postgres dbname=chenfu host=localhost" DATA "geom FROM test" STATUS ON TYPE LINE END END # Map File But when i try shp2img on this map. the result is msDrawMap(): Image handling error. Failed to draw layer named 'test'. My platform is redhat8. Do you know what's wrong? any suggestion is welcome! Thank you in advance! ===== Remote Scensing Satellite Ground Station Chinese Academy of Science _________________________________________________________ Do You Yahoo!? ¹úÄÚµçÓÊÓû§·´À¬»øµ÷²éÀ­¿ªá¡Ä» http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html From eric@gomoos.org Mon Jul 7 10:49:19 2003 From: eric@gomoos.org (Eric Bridger) Date: 07 Jul 2003 09:49:19 +0000 Subject: [Mapserver-users] Reslecting In-Reply-To: References: Message-ID: <1057571363.9997.8.camel@ubet.gomoos.org> In fact, mapserver will remember this for you. You can use: or layer_name_select for > > that should work for you. > Thanks, > Gayathri > > > -----Original Message----- > From: John M. Duggan, LSIT [mailto:gis@farmvilleva.com] > Sent: Thursday, July 03, 2003 11:14 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] Reslecting > > > Hello all, I sure appreciate everyone's input on this list it helps me out > in many ways. I'm hoping for a little more on check box's. I would like to > be able to inform the server that if someone checks a box to turn on a layer > that it will stay checked until they uncheck it. Is this possible? > Thanks, > John > > John M. Duggan LSIT > gis@farmvilleva.com > http://www.farmvilleva.com > (434) 392-3333 > > "......for the whole universe is in Him and He dwells > within our heart." > -The Upanishads > From gayathri@ou.edu Mon Jul 7 15:15:42 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Mon, 7 Jul 2003 09:15:42 -0500 Subject: [Mapserver-users] Query Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C34492.40229CB0 Content-Type: text/plain Hi: Got to use filter on this layer you are trying to query on. so map file will look something like, LAYER NAME layers TYPE .. STATUS ON DATA lakesshp FILTERITEM "value" FILTER ">100 and <200" LABELITEM "value" NAME "Lakes" COLOR .... TEMPLATE "....." END END More reference on Filter and filteritem in the mapfile reference in the mapserver site. Hth, Gayathri -----Original Message----- From: Mohamed Elshayal Smart [mailto:elshayal@smartwebonline.com] Sent: Thursday, July 03, 2003 7:55 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Query Dear Sirs, I use the following and it works mode=itemnquery&qlayer=lakes&item=area&value=100 but I try to use the following expression but it does not work. mode=itemnquery&qlayer=lakes&item=area&value>100&value<200 and how can I write expression statement in map file Thank you and best personal regards Mohamed Elshayal ------_=_NextPart_001_01C34492.40229CB0 Content-Type: text/html Message
Hi:
Got to use filter on this layer you are trying to query on.
so map file will look something like,
 
LAYER 
 NAME layers
 TYPE ..
 STATUS ON
 DATA lakesshp
 
 FILTERITEM "value"
 FILTER ">100 and <200"
 LABELITEM "value"
 NAME "Lakes"
 COLOR ....
 TEMPLATE "....."
  END
END
More reference on Filter and filteritem in the mapfile reference in the mapserver site.
Hth,
Gayathri
 
-----Original Message-----
From: Mohamed Elshayal Smart [mailto:elshayal@smartwebonline.com]
Sent: Thursday, July 03, 2003 7:55 PM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] Query

Dear Sirs,
I use the following and it works
 
mode=itemnquery&qlayer=lakes&item=area&value=100
 
but I try to use the following  expression but it does not work.
 
mode=itemnquery&qlayer=lakes&item=area&value>100&value<200
 
and how can I write expression statement in map file
 
Thank you and best personal regards
Mohamed Elshayal
------_=_NextPart_001_01C34492.40229CB0-- From fidofla@yahoo.com Mon Jul 7 15:36:37 2003 From: fidofla@yahoo.com (Fido) Date: Mon, 7 Jul 2003 07:36:37 -0700 (PDT) Subject: [Mapserver-users] Rehat 8 Installation Message-ID: <20030707143637.13311.qmail@web10507.mail.yahoo.com> List, Does anyone have install notes w/ versions available for Redhat 8? I m trying to get the following packages installed. Since upgrading to PHP 4.3.2 and Apache 2.0.46 php is now broken..... Since php is now broken I cannot go any further in testing mapserver 3.6.6... php-4.3.2 freetype-2.1.4rc2 postgis-0.7.5 gd-2.0.15 jpeg-6b postgresql-7.2.2 libpqxx-1.5.1 proj-4.4.7 gdal-cvs-030625 (w/ mr.sid support) httpd-2.0.46 mapserver-3.6.6 tiff-v3.6.0-beta2 Notes: gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Linux RUFF 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux TIA, Fido __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From lfilak@medinaco.org Mon Jul 7 15:45:06 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 07 Jul 2003 10:45:06 -0400 Subject: [Mapserver-users] Problem with Perl Mapscript Message-ID: <200307071445.h67Ej1N07080@yogi.medinaco.net> I don't see anything in the provided code aside from the previously sent comments and a missing "form" for the html "input". Is the routine now working or is there another error occurring? Lowell The following message was sent by AMC Story on Thu, 03 Jul 2003 12:41:52 +0100 (BST). > Hi everyone, > > Following my question about using JavaScript/MapScript to develop the standard > MapServer interface, I've now decided to try to use both, and have got the Perl > MapScript module working on our apache server. > > My problem is that most of the documentation and examples are for PHP > MapScript. Having only a list of constructors/methods etc for each object type > is helpful to a point, but this doesn't tell me how I should be putting them > together to get something to actually work! I've been trying to convert the > PHP MapScript by Example HOWTO into perl, using Steve Lime's mapquakes.pl as a > guide. > > My first problem is that perl mapscript doesn't seem to have a direct > equivalent of the saveWebImage method. Is this correct? In the absence of > such a method, I've been trying to use the saveImage method, but here I seem to > be running into problems. If you look at the way I've called the method (see > code below), then maybe you could suggest what I'm doing wrong. > > In the first case (ie. using mapscript::msSaveImage(...)), I get the error > message "Type error in argument 1 of msSaveImage. Expected _p_gdImagePtr..." > when I run the program at the command line. In the second case, using $image- > >saveImage(..), I get the following usage message "Usage: imageObj_saveImage > (self,filename,type,transparent,interlace,quality);". This has confused me > because this isn't the argument list given in the documentation. > > If anyone has some simple, step by step examples of how to build up > applications using Perl MapScript I'd be really interested in having a look. > > Many thanks, > Ali > > > > #!/usr/local/bin/perl -w > # > #playing around with mapscript > # > > #use mapscript; > use CGI qw(:standard); > use mapscript; > > $cgi = new CGI; > > $map_file = "/usr/local/apache/local-bin/s9646183/mapscript/quakes.map"; > $image_path = "/usr/local/apache/htdocs/tmp/"; > $image_url = "/tmp/"; > $image_id = $$ . time() . ".png"; > > $map = new mapscript::mapObj($map_file); > $image = $map->prepareImage(); > $layer = $map->getLayerByName('countries'); > $layer->draw($map, $image); > mapscript::msSaveImage($image, $image_path.$image_id, $map->{imagetype}, $map-> > {transparent}, $map->{interlace}, $map->{imagequality}); > #$image->saveImage($image, $image_path.$image_id, $mapscript::MS_PNG, $map-> > {transparent}, $map->{interlace}, $map->{imagequality}); > > print $cgi->header(); > print $cgi->start_html(-title=>'Map 1: Perl Mapscript Test'); > > print "

This is just a test

"; > print "
$image_id ."\">
"; > > print $cgi->end_html(); > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From nwoe@privat.utfors.se Mon Jul 7 15:48:47 2003 From: nwoe@privat.utfors.se (niklas wörmann) Date: Mon, 7 Jul 2003 16:48:47 +0200 Subject: [Mapserver-users] OT routing solutions References: <20030707143637.13311.qmail@web10507.mail.yahoo.com> Message-ID: <001701c34496$e8e7e2c0$8300a8c0@big> Hi! i am once again in the off topic area ;) does anyone know of a good, preferrably open source, web based routing solution? routing, as in, find the best/fastest/cheapest etc route between two arbitrary points. the only one i have found so far is routexnet, which is a bit too expensive for my taste. TIA niklas wörmann älvsjö sweden From noti@ciaoweb.it Mon Jul 7 16:13:05 2003 From: noti@ciaoweb.it (Valerio) Date: Mon, 7 Jul 2003 17:13:05 +0200 Subject: [Mapserver-users] change mapserver dlls path Message-ID: <001c01c3449a$5fd34700$0301a8c0@valerion> This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C344AB.07BF4DA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a web space with cgi-bin access in win2k server. ISP doesn't allow to install dll files in System32 directory. Is there a way to change mapserver dlls path without recompiling it (i.e. installing dlls directly in my web space)? And what happens if I don't install unused dlls? Thanks in advance Valerio ------=_NextPart_000_0011_01C344AB.07BF4DA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I have a web space with cgi-bin access = in win2k=20 server.
ISP doesn't allow to install dll files = in System32=20 directory.
Is there a way to change mapserver dlls = path=20 without recompiling it
(i.e. installing dlls directly in my = web=20 space)?
And what happens if I don't install = unused=20 dlls?
 
Thanks in advance
 
Valerio
 
 
------=_NextPart_000_0011_01C344AB.07BF4DA0-- From k.chodak@autoguard.pl Mon Jul 7 16:13:44 2003 From: k.chodak@autoguard.pl (Krzysztof Chodak) Date: Mon, 7 Jul 2003 17:13:44 +0200 Subject: [Mapserver-users] OT routing solutions In-Reply-To: <001701c34496$e8e7e2c0$8300a8c0@big> Message-ID: I'm now working on one that would work with mapserver. I use Graph Search Library (http://gslconcept.virtualave.net/index.htm) (A* algorithm for finding shortest path) and maybe there would be also TSP solver (probably based on free LK program). Currently I have build graph based on route network and saved in some binary file. Now I'm trying to draw shortest path between two selected vertices in the graph. Maybe I'll finish this stage by the end of month... BR Krzysztof Chodak -----Original Message----- From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of niklas wörmann Sent: Monday, July 07, 2003 4:49 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] OT routing solutions Hi! i am once again in the off topic area ;) does anyone know of a good, preferrably open source, web based routing solution? routing, as in, find the best/fastest/cheapest etc route between two arbitrary points. the only one i have found so far is routexnet, which is a bit too expensive for my taste. TIA niklas wörmann älvsjö sweden _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From flavio@tydac.ch Mon Jul 7 16:56:33 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Mon, 07 Jul 2003 17:56:33 +0200 Subject: [Mapserver-users] OT routing solutions In-Reply-To: <001701c34496$e8e7e2c0$8300a8c0@big> References: <20030707143637.13311.qmail@web10507.mail.yahoo.com> <001701c34496$e8e7e2c0$8300a8c0@big> Message-ID: hi niklas we used routeware netserver for a client: http://www.routeware.dk/ not open source but not too expensive either. best regards flavio -----Original Message----- From: "niklas wörmann" To: Date: Mon, 7 Jul 2003 16:48:47 +0200 Subject: [Mapserver-users] OT routing solutions > Hi! > i am once again in the off topic area ;) > > does anyone know of a good, preferrably open source, web based > routing > solution? > routing, as in, find the best/fastest/cheapest etc route between two > arbitrary points. > > the only one i have found so far is routexnet, which is a bit too > expensive > for my taste. > > TIA > > niklas wörmann > älvsjö > sweden > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Mon Jul 7 17:14:25 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 7 Jul 2003 12:14:25 -0400 Subject: [Mapserver-users] change mapserver dlls path Message-ID: <13858AA1A74F30419F319ACB66A9D1222BFC9F@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C344A2.D58EAEB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Valerio - =20 The DLLs can be anywhere on the path where MapServer can find them. = Usually you will do just fine by putting them in the same directory as = mapserv.exe. =20 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 -----Original Message----- From: Valerio [mailto:noti@ciaoweb.it] Sent: Monday, July 07, 2003 11:13 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] change mapserver dlls path Hi, I have a web space with cgi-bin access in win2k server. ISP doesn't allow to install dll files in System32 directory. Is there a way to change mapserver dlls path without recompiling it (i.e. installing dlls directly in my web space)? And what happens if I don't install unused dlls? =20 Thanks in advance =20 Valerio =20 =20 ------_=_NextPart_001_01C344A2.D58EAEB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Valerio -
 
The=20 DLLs can be anywhere on the path where MapServer can find them.  = Usually=20 you will do just fine by putting them in the same directory as=20 mapserv.exe.
 
    - Ed

Ed McNierney
President and Chief = Mapmaker
TopoZone.com /=20 Maps a la carte, Inc.
73 Princeton Street, Suite 305
North = Chelmsford,=20 MA  01863
ed@topozone.com
(978) 251-4242 =

-----Original Message-----
From: Valerio=20 [mailto:noti@ciaoweb.it]
Sent: Monday, July 07, 2003 11:13=20 AM
To: mapserver-users@lists.gis.umn.edu
Subject:=20 [Mapserver-users] change mapserver dlls path

Hi,
I have a web space with cgi-bin = access in win2k=20 server.
ISP doesn't allow to install dll = files in=20 System32 directory.
Is there a way to change mapserver = dlls path=20 without recompiling it
(i.e. installing dlls directly in my = web=20 space)?
And what happens if I don't install = unused=20 dlls?
 
Thanks in advance
 
Valerio
 
 
------_=_NextPart_001_01C344A2.D58EAEB0-- From dblasby@refractions.net Mon Jul 7 17:38:50 2003 From: dblasby@refractions.net (David Blasby) Date: Mon, 07 Jul 2003 09:38:50 -0700 Subject: [Mapserver-users] query postgis layer (boolean conversion problem) In-Reply-To: <5.0.0.25.2.20030706114957.0306af98@pop.xs4all.nl> References: <5.0.0.25.2.20030706114957.0306af98@pop.xs4all.nl> Message-ID: <3F09A21A.9090902@refractions.net> No, this is a bug with postgresql - they dont have a default boolean->text type cast. If you're using 7.2, add this function: CREATE FUNCTION text(bool) returns text as 'SELECT ''t'' WHERE $1 UNION SELECT ''f'' WHERE NOT $1' language 'SQL' with (iscachable,isstrict); On 7.3 (and 7.4), you'll ALSO have to add: CREATE CAST (boolean AS text) WITH FUNCTION text(bool) AS IMPLICIT; From Zamil.Murji@divestco.com Mon Jul 7 18:01:22 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Mon, 7 Jul 2003 11:01:22 -0600 Subject: [Mapserver-users] Oracle Spatial Query Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A938@div-mx02.DIVESTCO.COM> Hello all, Is it possible to use a layer from an oracle spatial db in accordance with a template file. Currently, if the data resides in a shapefile you can in query mode return a template file. The template file can have attributes from the associated .dbf file. I want to do the same for a layer from an oracle spatial db. So in the data string if i went: DATA "SELECT GEOM, WELL_ID FROM OILWELLS" I could refer to well_id in the template file. Can this be done? Some sample .map files would be great and template files as well. I would like to do this with mode set as nquery. Thanks Zamil From jkeighan@cubewerx.com Mon Jul 7 20:33:19 2003 From: jkeighan@cubewerx.com (Jordy Keighan) Date: Mon, 07 Jul 2003 15:33:19 -0400 Subject: [Mapserver-users] Compilation problems Message-ID: <3F09CAFF.7000100@cubewerx.com> Hi i'm running Redhat 9 with maplab2.0.1 i've been told that maplab does not support mapserv 3.7 and 4.0 i tried to install mapserv 3.6 but i am unable to compile it. here is my mapserv configure string : ./configure --with-tiff --with-jpeg --with-zlib --with-png --with-freetype --with-eppl --with-proj=/usr/local/proj-4.4.7 --with-gdal=/usr/local/gdal-1.1.8/apps/gdal-config --with-wmsclient -with-php=/usr/local/php-4.2.3 --with-gd=/usr/local/gd-2.0.15gif --with-ogr=/usr/local/gdal-1.1.8/apps/gdal-config what should i do ??? what version of mapserv do i realy need to use. thxs jordy From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Mon Jul 7 20:46:49 2003 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Mon, 7 Jul 2003 15:46:49 -0400 Subject: [Mapserver-users] Compilation problems Message-ID: <7CDD7B94357FD5119E800002A537C46E230893@s5-ccr-r1.ccrs.nrcan.gc.ca> Jordy, Well, with MapServer 3.6, you're better off with GD 1.84 and Freetype 1 ... Also, there's issues with RedHat 9 (More precisely GCC 3.x) and MapServer ... Could you provide more detailed information on the errors you're getting ? J.F. -----Original Message----- From: Jordy Keighan [mailto:jkeighan@cubewerx.com] Sent: Monday, July 07, 2003 3:33 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Compilation problems Hi i'm running Redhat 9 with maplab2.0.1 i've been told that maplab does not support mapserv 3.7 and 4.0 i tried to install mapserv 3.6 but i am unable to compile it. here is my mapserv configure string : ./configure --with-tiff --with-jpeg --with-zlib --with-png --with-freetype --with-eppl --with-proj=/usr/local/proj-4.4.7 --with-gdal=/usr/local/gdal-1.1.8/apps/gdal-config --with-wmsclient -with-php=/usr/local/php-4.2.3 --with-gd=/usr/local/gd-2.0.15gif --with-ogr=/usr/local/gdal-1.1.8/apps/gdal-config what should i do ??? what version of mapserv do i realy need to use. thxs jordy _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From pond_bear@hotmail.com Mon Jul 7 23:01:56 2003 From: pond_bear@hotmail.com (pond bear) Date: Mon, 07 Jul 2003 17:01:56 -0500 Subject: [Mapserver-users] (no subject) Message-ID: Hi Paul, I want to upgrade my website into mapscript. I attended the Mapserver Users' meeting and found a lot of good examples of your presentations about php/mapscript. Would you please give me a link to download the slides? Thanks a lot. Jing University of North Dakota _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Zamil.Murji@divestco.com Mon Jul 7 23:30:07 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Mon, 7 Jul 2003 16:30:07 -0600 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A93A@div-mx02.DIVESTCO.COM> Hi List, Here is my situation: 1) From the server, I can ping the postgis server and I can telnet into it on the correct port (5432). 2) From the postgis server, I can login to the db using psql command. The command I used looks similar to the CONNECTION string my .map file. 3) I can select the geometry from the table. 4) Basically, I can do everything mentioned in the Wiki. After all this, I cannot display the layer using mapserver. I keep getting the following error: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map layer definition: #PostGIS Data Layer LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=sdb2 port=5432" DATA "GEOM FROM OILWELLS" CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 20 # TEMPLATE "c:\\mapfiles\test.html" END END I have indexed geom using gist syntax. How do I verify this index exists? Here is my table: idc=# select * from oilwells; id | geom ----+-------------------------------------- 1 | SRID=4326;POINT(-110.04146 49.01449) 2 | SRID=4326;POINT(-110.24459 49.01449) 3 | SRID=4326;POINT(-110.43138 49.01449) (3 rows) What am I missing? Thank you very much for your help. Zamil From gayathri@ou.edu Mon Jul 7 23:40:02 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Mon, 7 Jul 2003 17:40:02 -0500 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: Hi Zamil, In the DATA you are saying "GEOM FROM OILWELLS" Is it really GEOM (column name of geometry in oilwells table, normally it is somethin like, "the_geom" And the msDrawMap() error is because it was not able to get DATA.. Please do also check that the table name OILWELLS is in CAPS??..I think Postgres is case sensitive. HTH, Gayathri -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Monday, July 07, 2003 4:30 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] PostGIS questions - help with mapserver Hi List, Here is my situation: 1) From the server, I can ping the postgis server and I can telnet into it on the correct port (5432). 2) From the postgis server, I can login to the db using psql command. The command I used looks similar to the CONNECTION string my .map file. 3) I can select the geometry from the table. 4) Basically, I can do everything mentioned in the Wiki. After all this, I cannot display the layer using mapserver. I keep getting the following error: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map layer definition: #PostGIS Data Layer LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=sdb2 port=5432" DATA "GEOM FROM OILWELLS" CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 20 # TEMPLATE "c:\\mapfiles\test.html" END END I have indexed geom using gist syntax. How do I verify this index exists? Here is my table: idc=# select * from oilwells; id | geom ----+-------------------------------------- 1 | SRID=4326;POINT(-110.04146 49.01449) 2 | SRID=4326;POINT(-110.24459 49.01449) 3 | SRID=4326;POINT(-110.43138 49.01449) (3 rows) What am I missing? Thank you very much for your help. Zamil _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Zamil.Murji@divestco.com Mon Jul 7 23:49:28 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Mon, 7 Jul 2003 16:49:28 -0600 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A93B@div-mx02.DIVESTCO.COM> Hi, Yes, geom is the the name of the geometry in oilwells table. I changed the DATA to be "geom from oilwells", but i still get the same error. Some more help please. Thanks for the quick reply and I hope to hear some more, Zamil -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Monday, July 07, 2003 4:40 PM To: Zamil Murji; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] PostGIS questions - help with mapserver Hi Zamil, In the DATA you are saying "GEOM FROM OILWELLS" Is it really GEOM (column name of geometry in oilwells table, normally it is somethin like, "the_geom" And the msDrawMap() error is because it was not able to get DATA.. Please do also check that the table name OILWELLS is in CAPS??..I think Postgres is case sensitive. HTH, Gayathri -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Monday, July 07, 2003 4:30 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] PostGIS questions - help with mapserver Hi List, Here is my situation: 1) From the server, I can ping the postgis server and I can telnet into it on the correct port (5432). 2) From the postgis server, I can login to the db using psql command. The command I used looks similar to the CONNECTION string my .map file. 3) I can select the geometry from the table. 4) Basically, I can do everything mentioned in the Wiki. After all this, I cannot display the layer using mapserver. I keep getting the following error: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. Here is my .map layer definition: #PostGIS Data Layer LAYER NAME "oilwells" TYPE point STATUS default CONNECTIONTYPE postgis CONNECTION "user=idc dbname=idc host=sdb2 port=5432" DATA "GEOM FROM OILWELLS" CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 20 # TEMPLATE "c:\\mapfiles\test.html" END END I have indexed geom using gist syntax. How do I verify this index exists? Here is my table: idc=# select * from oilwells; id | geom ----+-------------------------------------- 1 | SRID=4326;POINT(-110.04146 49.01449) 2 | SRID=4326;POINT(-110.24459 49.01449) 3 | SRID=4326;POINT(-110.43138 49.01449) (3 rows) What am I missing? Thank you very much for your help. Zamil _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From dblasby@refractions.net Mon Jul 7 23:50:04 2003 From: dblasby@refractions.net (David Blasby) Date: Mon, 07 Jul 2003 15:50:04 -0700 Subject: [Mapserver-users] PostGIS questions - help with mapserver In-Reply-To: <64FC1B3E23F04C4E931EE3F6D809FF30A93A@div-mx02.DIVESTCO.COM> References: <64FC1B3E23F04C4E931EE3F6D809FF30A93A@div-mx02.DIVESTCO.COM> Message-ID: <3F09F91C.5030205@refractions.net> Zamil Murji wrote: > CONNECTIONTYPE postgis > CONNECTION "user=idc dbname=idc host=sdb2 port=5432" > DATA "GEOM FROM OILWELLS" Try using: DATA "geom from (select * from oilwells) as foo using unique id using SRID=4326" If that doesnt help, it sound like it might be a problem upstream from the postgis connector. What version of mapserver are you using? dave From gayathri@ou.edu Mon Jul 7 23:50:37 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Mon, 7 Jul 2003 17:50:37 -0500 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: Hi: In your postgis connection definition, try giving and see if this works, CONNECTION "user=idc passwd=**** dbname=idc host=sdb2 port=5432" Thanks, Gayathri -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Monday, July 07, 2003 4:49 PM To: Swaminathan, Gayathri; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] PostGIS questions - help with mapserver Hi, Yes, geom is the the name of the geometry in oilwells table. I changed the DATA to be "geom from oilwells", but i still get the same error. Some more help please. Thanks for the quick reply and I hope to hear some more, Zamil From Zamil.Murji@divestco.com Tue Jul 8 00:03:57 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Mon, 7 Jul 2003 17:03:57 -0600 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A93C@div-mx02.DIVESTCO.COM> Hi David, I tried your data string. It comes back really fast but with the exact same result, the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. I downloaded this from the mapserver website. Here is some interesting stuff: I'm using PostgreSQL 7.3.3 and PostGIS 0.7.5 Both are fairly new, do you think there is a problem with this? If so what versions are supported? mapserv -v results in the following: MapServer version 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 INPUT=EPPL7 INPUT=POSTGIS INPUT= OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Zamil -----Original Message----- From: David Blasby [mailto:dblasby@refractions.net] Sent: Monday, July 07, 2003 4:50 PM To: Zamil Murji Cc: mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] PostGIS questions - help with mapserver Zamil Murji wrote: > CONNECTIONTYPE postgis > CONNECTION "user=idc dbname=idc host=sdb2 port=5432" > DATA "GEOM FROM OILWELLS" Try using: DATA "geom from (select * from oilwells) as foo using unique id using SRID=4326" If that doesnt help, it sound like it might be a problem upstream from the postgis connector. What version of mapserver are you using? dave From Zamil.Murji@divestco.com Tue Jul 8 00:04:38 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Mon, 7 Jul 2003 17:04:38 -0600 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A93D@div-mx02.DIVESTCO.COM> No password has been set for this user. So I don't think that will work. Zamil -----Original Message----- From: Swaminathan, Gayathri [mailto:gayathri@ou.edu] Sent: Monday, July 07, 2003 4:51 PM To: Zamil Murji; Swaminathan, Gayathri; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] PostGIS questions - help with mapserver Hi: In your postgis connection definition, try giving and see if this works, CONNECTION "user=idc passwd=**** dbname=idc host=sdb2 port=5432" Thanks, Gayathri -----Original Message----- From: Zamil Murji [mailto:Zamil.Murji@divestco.com] Sent: Monday, July 07, 2003 4:49 PM To: Swaminathan, Gayathri; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] PostGIS questions - help with mapserver Hi, Yes, geom is the the name of the geometry in oilwells table. I changed the DATA to be "geom from oilwells", but i still get the same error. Some more help please. Thanks for the quick reply and I hope to hear some more, Zamil From dblasby@refractions.net Tue Jul 8 00:17:48 2003 From: dblasby@refractions.net (David Blasby) Date: Mon, 07 Jul 2003 16:17:48 -0700 Subject: [Mapserver-users] PostGIS questions - help with mapserver In-Reply-To: <64FC1B3E23F04C4E931EE3F6D809FF30A93C@div-mx02.DIVESTCO.COM> References: <64FC1B3E23F04C4E931EE3F6D809FF30A93C@div-mx02.DIVESTCO.COM> Message-ID: <3F09FF9C.3050602@refractions.net> Zamil Murji wrote: > I tried your data string. It comes back really fast but with the exact same result, the following error message: > msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. > > I downloaded this from the mapserver website. Here is some interesting stuff: > I'm using PostgreSQL 7.3.3 and PostGIS 0.7.5 > Both are fairly new, do you think there is a problem with this? If so what versions are supported? > > mapserv -v results in the following: > MapServer version 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 INPUT=EPPL7 INPUT=POSTGIS INPUT= > OGR INPUT=GDAL INPUT=SHAPEFILE I think this is probably a problem with the mapserver core - does anyone here know what the error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. means? Zamil - have your tried this with mapserver 3.6.6 (also available in the cvs archive)? dave From marichalperez@yahoo.es Tue Jul 8 09:44:58 2003 From: marichalperez@yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Tue, 8 Jul 2003 09:44:58 +0100 Subject: [Mapserver-users] Logo image Message-ID: <001501c3452d$3ad55450$070010ac@manolo> Hi all. I want to put a logo image in all my maps. In order to achieve it, I wrote this lines in my "map" file: LAYER NAME "Leyenda" DATA "logo.gif" STATUS ON TYPE RASTER TRANSFORM FALSE END This works, but the image appears always in (0,0) position. Does anybody know how to get the image in other position of the screen? Thanks a lot, Manolo From flavio@tydac.ch Tue Jul 8 10:22:15 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Tue, 08 Jul 2003 11:22:15 +0200 Subject: [Mapserver-users] Logo image In-Reply-To: <001501c3452d$3ad55450$070010ac@manolo> References: <001501c3452d$3ad55450$070010ac@manolo> Message-ID: hi manolo this is kind of the "dirty" way to do it, if I can explain myself: create a larger image (i.e. the size of the map you have), position your image on-there where you want to have it, and set the background of the image transparent ... ciao flavio From matthieu.gallien@educagri.fr Tue Jul 8 10:33:23 2003 From: matthieu.gallien@educagri.fr (matthieu gallien) Date: Tue, 08 Jul 2003 11:33:23 +0200 Subject: [Mapserver-users] store color in dbf files Message-ID: <3F0A8FE3.3020701@educagri.fr> Do you know if it is possible to load color data from a dbf to use in mapserver to draw shape with the color stored in the database. I read a little about styleset which is experimental and maybe it is the solution ? Thank you for your answers. From Mark.Balman@birdlife.org.uk Tue Jul 8 11:39:37 2003 From: Mark.Balman@birdlife.org.uk (Mark Balman) Date: Tue, 8 Jul 2003 11:39:37 +0100 Subject: [Mapserver-users] mapserver web hosting Message-ID: Hi All Has anyone got a list of mapserver web hosting companies? TIA Mark From sscott@gwi.net Tue Jul 8 12:08:59 2003 From: sscott@gwi.net (Shannon Scott) Date: Tue, 8 Jul 2003 07:08:59 -0400 Subject: [Mapserver-users] Logo image References: <001501c3452d$3ad55450$070010ac@manolo> Message-ID: <004701c34541$5538ea50$37c8a8c0@PEMAQUID> Manolo, You can set TRANSFORM OFF, and then use an "inline feature" to place the logo in map-image coordinate space. (example below) # logo LAYER NAME logo01 TYPE Point STATUS DEFAULT TRANSFORM OFF TRANSPARENCY 50 FEATURE POINTS 41 388 END END CLASS SYMBOL logo END END # logo I have the symbol defined as follows. SYMBOL NAME "logo" TYPE PIXMAP IMAGE "../images/imagelogo.png" END I hope this helps. Take Care Shannon ----- Original Message ----- From: "Manuel Marichal Pérez" To: "Lista MapSever" Sent: Tuesday, July 08, 2003 4:44 AM Subject: [Mapserver-users] Logo image > > Hi all. I want to put a logo image in all my maps. In order to > achieve it, I wrote this lines in my "map" file: > > LAYER > NAME "Leyenda" > DATA "logo.gif" > STATUS ON > TYPE RASTER > TRANSFORM FALSE > END > > This works, but the image appears always in (0,0) position. Does > anybody know how to get the image in other position of the > screen? > > Thanks a lot, > Manolo > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From patruno@istat.it Tue Jul 8 12:48:49 2003 From: patruno@istat.it (Vincenzo Patruno) Date: Tue, 8 Jul 2003 13:48:49 +0200 Subject: [Mapserver-users] Geodemo.istat.it Message-ID: <016301c34546$e5d0f5d0$4a69120a@senna142> Messaggio in formato MIME composto da piy parti. ------=_NextPart_000_0160_01C34557.A92D5EA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, I'm happy to announce the first release of "Geodemo" web site, a new = system to extract data and to draw maps about demographic statistics. Geodemo is a way to supply to the users the possibility to obtain = tables about demographic data and to show=20 demographic indicators on maps. http://geodemo.istat.it/gpop2001/index_e.php Please email me if you have comments regarding the system. Thanks in advance to all.=20 =20 Vincenzo Patruno ISTAT ------=_NextPart_000_0160_01C34557.A92D5EA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,

I'm happy to = announce the first=20 release of "Geodemo" web site, a new system to
extract data and to draw maps about = demographic=20 statistics.
Geodemo is  a way to supply to the = users=20 the possibility to obtain tables = about=20 demographic data and to  show
demographic indicators on = maps.
 
 
http://geodemo.ista= t.it/gpop2001/index_e.php
 
Please email me if you have comments = regarding the=20 system.
 
Thanks in advance to = all. 
 
Vincenzo Patruno
ISTAT
------=_NextPart_000_0160_01C34557.A92D5EA0-- From bplatzen@sosnetz.de Tue Jul 8 14:57:20 2003 From: bplatzen@sosnetz.de (Bjoern Platzen) Date: Tue, 8 Jul 2003 15:57:20 +0200 Subject: [Mapserver-users] MapScript: map-Y coordinate is always wrong while map-X is right Message-ID: <200307081557.20863.bplatzen@sosnetz.de> Hello List, maybe I'm just to blind, but I can't figure out, what is going wrong. I wrote a small Program using PythonMapscript. I'm calculating the following to get the Map-Coordinates from the Click-Coordinates (where clickX and clickY come as img.x and img.y from a HTML-form, Extend is the [mapext]): def _click2map(self,clickX, clickY, Extend): '''Uebersetze Klick-Koordinaten in Kartenkoordinaten''' Extend = Extend.split(" ") cx = (float(Extend[2])-float(Extend[0]))/(self.mymap.width-1) cy = (float(Extend[3])-float(Extend[1]))/(self.mymap.height-1) xMap = float(currentExtend[0])+cx*clickX yMap = float(currentExtend[1])+cy*clickY return (xMap,yMap) I took the function from a PerlMapScript Example. But it doesn't work for me. The yMap is always wrong while the xMap is always right... Maybe this comes because I have a mistake in my function that calculates the Extend (mapext): def _newExtend(self, Extend, zoomdir=0, zoomsize=1): currentExtend = Extend.split(" ") if zoomdir == 0: zoom = 1 else: zoom = zoomsize * zoomdir if zoom < 0: zoom = 1.0/abs(zoom) cx = self.mapXY[0] cy = self.mapXY[1] he = float(currentExtend[2])-float(currentExtend[0]) wi = float(currentExtend[3])-float(currentExtend[1]) self.mymap.extent.maxx = cx + (he/zoom)/2 self.mymap.extent.minx = cx - (he/zoom)/2 self.mymap.extent.maxy = cy + (wi/zoom)/2 self.mymap.extent.miny = cy - (wi/zoom)/2 return 1 The imgext is calculated this way: def _imageExtend(self): '''Finde den tatsaechlich sichtbaren Extent heraus''' loleft = self._click2map(0,self.mymap.height,self.mapExtent) upright = self._click2map(self.mymap.width,0,self.mapExtent) Ext = str(loleft[0])+" "+str(loleft[1])+" "+str(upright[0])+" "+str(upright[1]) return Ext I hope, that there is anyone on the list, who can push me in the right direction. Thanks in advance, Bjoern -- small office solutions info@sosnetz.de - http://www.sosnetz.de From flavio@tydac.ch Tue Jul 8 15:35:53 2003 From: flavio@tydac.ch (Flavio Hendry) Date: Tue, 08 Jul 2003 16:35:53 +0200 Subject: [Mapserver-users] mapserver web hosting In-Reply-To: References: Message-ID: hi mark nope, but the ones I know are: - DM Solutions: www.dmsolutions.ca - TYDAC: www.mapserver.ch ciao flavio -----Original Message----- From: Mark Balman To: "'mapserver-users@lists.gis.umn.edu'" Date: Tue, 8 Jul 2003 11:39:37 +0100 Subject: [Mapserver-users] mapserver web hosting > Hi All > > Has anyone got a list of mapserver web hosting companies? > > TIA > > Mark > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From sgillies@frii.com Tue Jul 8 15:49:47 2003 From: sgillies@frii.com (Sean Gillies) Date: Tue, 8 Jul 2003 08:49:47 -0600 Subject: [Mapserver-users] MapScript: map-Y coordinate is always wrong while map-X is right In-Reply-To: <200307081557.20863.bplatzen@sosnetz.de> Message-ID: <6B7F0DFA-B153-11D7-9B53-000393B98B56@frii.com> Hi Bjoern, I found the problem in your code. See below. On Tuesday, July 8, 2003, at 07:57 AM, Bjoern Platzen wrote: > Hello List, > > maybe I'm just to blind, but I can't figure out, what is going wrong. > > I wrote a small Program using PythonMapscript. > > I'm calculating the following to get the Map-Coordinates from the > Click-Coordinates (where clickX and clickY come as img.x and img.y from > a HTML-form, Extend is the [mapext]): > > def _click2map(self,clickX, clickY, Extend): > '''Uebersetze Klick-Koordinaten in Kartenkoordinaten''' > Extend = Extend.split(" ") > > cx = (float(Extend[2])-float(Extend[0]))/(self.mymap.width-1) > cy = (float(Extend[3])-float(Extend[1]))/(self.mymap.height-1) > > xMap = float(currentExtend[0])+cx*clickX > yMap = float(currentExtend[1])+cy*clickY > should be: yMap = float(currentExtent[1])-cy*clickY Remember that the origin of your image is the upper left corner and so your new map point will always have a smaller y value. Also, it looks like you are calculating cx and cy incorrectly. Here is an example of how this calculation is done in ZMapServer (http://zmapserver.sourceforge.net): extent = (mapobj.extent.minx, mapobj.extent.miny, mapobj.extent.maxx, mapobj.extent.maxy ) width = mapobj.width height = mapobj.height pxsize = (extent[2]-extent[0])/width pysize = (extent[3]-extent[1])/height point = {} point['x'] = extent[0] + pixel*pxsize point['y'] = extent[3] - line*pysize cheers, Sean -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From lfilak@medinaco.org Tue Jul 8 16:01:41 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Tue, 08 Jul 2003 11:01:41 -0400 Subject: [Mapserver-users] MapScript: map-Y coordinate is always wrong while map-X is right Message-ID: <200307081501.h68F1ZN26043@yogi.medinaco.net> By any chance does the Y result appear to be "mirrored" about the center of the extent/map? It may just be a matter of: yMap = float(currentExtend[1])-cy*clickY vs. yMap = float(currentExtend[1])+cy*clickY due to 0,0 on the image being top left and 0,0 in the extent being lower left. HTH Lowell The following message was sent by Bjoern Platzen on Tue, 8 Jul 2003 15:57:20 +0200. > Hello List, > > maybe I'm just to blind, but I can't figure out, what is going wrong. > > I wrote a small Program using PythonMapscript. > > I'm calculating the following to get the Map-Coordinates from the > Click-Coordinates (where clickX and clickY come as img.x and img.y from > a HTML-form, Extend is the [mapext]): > > def _click2map(self,clickX, clickY, Extend): > '''Uebersetze Klick-Koordinaten in Kartenkoordinaten''' > Extend = Extend.split(" ") > > cx = (float(Extend[2])-float(Extend[0]))/(self.mymap.width-1) > cy = (float(Extend[3])-float(Extend[1]))/(self.mymap.height-1) > > xMap = float(currentExtend[0])+cx*clickX > yMap = float(currentExtend[1])+cy*clickY > > return (xMap,yMap) > > I took the function from a PerlMapScript Example. But it doesn't work > for me. The yMap is always wrong while the xMap is always right... > > Maybe this comes because I have a mistake in my function that calculates > the Extend (mapext): > > def _newExtend(self, Extend, zoomdir=0, zoomsize=1): > > currentExtend = Extend.split(" ") > > if zoomdir == 0: > zoom = 1 > else: > zoom = zoomsize * zoomdir > if zoom < 0: > zoom = 1.0/abs(zoom) > > cx = self.mapXY[0] > cy = self.mapXY[1] > > he = float(currentExtend[2])-float(currentExtend[0]) > wi = float(currentExtend[3])-float(currentExtend[1]) > > self.mymap.extent.maxx = cx + (he/zoom)/2 > self.mymap.extent.minx = cx - (he/zoom)/2 > self.mymap.extent.maxy = cy + (wi/zoom)/2 > self.mymap.extent.miny = cy - (wi/zoom)/2 > return 1 > > The imgext is calculated this way: > > def _imageExtend(self): > '''Finde den tatsaechlich sichtbaren Extent heraus''' > loleft = self._click2map(0,self.mymap.height,self.mapExtent) > upright = self._click2map(self.mymap.width,0,self.mapExtent) > Ext = str(loleft[0])+" "+str(loleft[1])+" "+str(upright[0])+" > "+str(upright[1]) > return Ext > > I hope, that there is anyone on the list, who can push me in the right > direction. > > Thanks in advance, > > Bjoern > > -- > small office solutions > info@sosnetz.de - http://www.sosnetz.de > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Zamil.Murji@divestco.com Tue Jul 8 16:10:56 2003 From: Zamil.Murji@divestco.com (Zamil Murji) Date: Tue, 8 Jul 2003 09:10:56 -0600 Subject: [Mapserver-users] PostGIS questions - help with mapserver Message-ID: <64FC1B3E23F04C4E931EE3F6D809FF30A940@div-mx02.DIVESTCO.COM> Hi All, I found the error! I didn't have an entry in my pg_hba.conf file to allow the mapserver host to connect to the postgis server. Oops! Maybe someone should add this to the WIKI. Thanks for all your help. Zamil -----Original Message----- From: Zamil Murji Sent: Monday, July 07, 2003 5:04 PM To: David Blasby Cc: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] PostGIS questions - help with mapserver Hi David, I tried your data string. It comes back really fast but with the exact same result, the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'oilwells'. I downloaded this from the mapserver website. Here is some interesting stuff: I'm using PostgreSQL 7.3.3 and PostGIS 0.7.5 Both are fairly new, do you think there is a problem with this? If so what versions are supported? mapserv -v results in the following: MapServer version 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 INPUT=EPPL7 INPUT=POSTGIS INPUT= OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Zamil -----Original Message----- From: David Blasby [mailto:dblasby@refractions.net] Sent: Monday, July 07, 2003 4:50 PM To: Zamil Murji Cc: mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] PostGIS questions - help with mapserver Zamil Murji wrote: > CONNECTIONTYPE postgis > CONNECTION "user=idc dbname=idc host=sdb2 port=5432" > DATA "GEOM FROM OILWELLS" Try using: DATA "geom from (select * from oilwells) as foo using unique id using SRID=4326" If that doesnt help, it sound like it might be a problem upstream from the postgis connector. What version of mapserver are you using? dave _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From bmurch@seas.marine.usf.edu Tue Jul 8 16:05:39 2003 From: bmurch@seas.marine.usf.edu (Brock Murch) Date: Tue, 8 Jul 2003 11:05:39 -0400 Subject: [Mapserver-users] Re: adding RASTER Layer In-Reply-To: References: Message-ID: <200307081105.39984.bmurch@marine.usf.edu> Charlton: Thanks for the try... does the list have any ideas? The error definately has to do with the raster layer: STATUS DEFAULT error_log output: > __START_LOG__ > [Tue Jul 08 09:31:49 2003] [error] [client 131.247.136.204] Premature > end of > script headers: mapserv, referer: > http://www.imars.usf.edu/tutorial35/s2/s2ex3_test2.html > __END_LOG__ > I cannot duplicate any of your errors that seem to be cropping up w/ > 4.0b. Upgrading to that would require me to upgrade my gdal libraries, > and I'm not quite ready to take that plunge. Wonder if that's it? > > Just for kicks, does running > gdalinfo /var/www/html/tutorial35/data/raster/shdrlfi020g_ugl.tif > give you back anything intelligible? gdalinfo /var/www/html/tutorial35/data/raster/shdrlfi020g_ugl.tif Driver: GTiff/GeoTIFF Size is 2066, 1023 Coordinate System is `' Origin = (-98.607616,49.868450) Pixel Size = (0.009075,-0.009075) Metadata: TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.8 $ $Date: 2001/01/25 22:04:51Z $ Corner Coordinates: Upper Left ( -98.6076164, 49.8684504) Lower Left ( -98.6076164, 40.5847254) Upper Right ( -79.8586664, 49.8684504) Lower Right ( -79.8586664, 40.5847254) Center ( -89.2331414, 45.2265879) Band 1 Block=2066x3 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 169,209,254,255 1: 156,197,236,255 2: 18,40,48,255 3: 32,60,56,255 4: 43,73,62,255 5: 53,84,66,255 6: 62,94,72,