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 f