From shostko@ureach.com Sat Feb 1 04:28:13 2003 From: shostko@ureach.com (Alexander Shostko) Date: Fri, 31 Jan 2003 23:28:13 -0500 Subject: [Mapserver-users] gmap Message-ID: <200302010428.XAA21247@www20.ureach.com> Dear Mapserver Users I am using apache version 1.3.23 , php-4.3.0 and mapserevr 3.7 with mapscript 3.7 using php as CGI . php_mapscript.dll is loaded in php.ini as extesion. I am trying to get good examples of php-mapscript and running gmap as available demo. When I trying to run gmap (starting with gmap75.phml Fatal error: Call to undefined function: ms_getversion() in c:\apache1.3.23\apache\htdocs\gmap\htdocs\gmap75.php3 on line 51 What is the version of mapscript/php are good for gmap ? Or I have errors in the configuration ? Thanks Alexander Shostko From sqtiger2000@yahoo.com Sun Feb 2 23:01:38 2003 From: sqtiger2000@yahoo.com (Qian Sha) Date: Sun, 2 Feb 2003 15:01:38 -0800 (PST) Subject: [Mapserver-users] Question Message-ID: <20030202230138.18007.qmail@web20801.mail.yahoo.com> What is the raw map?what is the new map? What is the difference between the rawextend and extend? __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From sqtiger2000@yahoo.com Mon Feb 3 02:45:39 2003 From: sqtiger2000@yahoo.com (Qian Sha) Date: Sun, 2 Feb 2003 18:45:39 -0800 (PST) Subject: [Mapserver-users] raw map extend and new map extend Message-ID: <20030203024539.74089.qmail@web20806.mail.yahoo.com> Help! What is the difference between raw map and new map extend?Thanks. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From pia_rose.trias@up.edu.ph Mon Feb 3 07:00:49 2003 From: pia_rose.trias@up.edu.ph (pia rose trias) Date: Mon, 3 Feb 2003 15:00:49 +0800 Subject: [Mapserver-users] help:labels In-Reply-To: <20030131180001.16653.92003.Mailman@lists.gis.umn.edu> References: <20030131180001.16653.92003.Mailman@lists.gis.umn.edu> Message-ID: <1044255649.3e3e13a11a723@mail.up.edu.ph> hi! i am using mapscript, I would like to know how can I make labels.can anyone help me.tnx! From mschulz@webgis.de Mon Feb 3 09:20:48 2003 From: mschulz@webgis.de (Michael Schulz) Date: Mon, 03 Feb 2003 10:20:48 +0100 Subject: [Mapserver-users] creating windows binary installation package ?? Message-ID: <3E3E3470.500B6B54@webgis.de> Hi, i know, that this is a bit off topic, and i have to say in advance that we mostly use MapServer on Linux, but now we have to create a windows mapserver (already compiled...) and than package everything into a windows binary installation. I know a lot of folks are doing that out there, could somebody give me advice how to do that, e.g. i assume i need an installer program like wise package studio ? Thanks for your help, Michael -- ----------------------------------------------------------- Michael Schulz From berend.veldkamp@aris.nl Mon Feb 3 09:41:42 2003 From: berend.veldkamp@aris.nl (Berend Veldkamp) Date: Mon, 03 Feb 2003 10:41:42 +0100 Subject: [Mapserver-users] creating windows binary installation package ?? References: <3E3E3470.500B6B54@webgis.de> Message-ID: <3E3E3956.6EBDA1A2@aris.nl> Inno setup is pretty decent. And it's free :) http://www.jrsoftware.org/isinfo.php Michael Schulz wrote: > > Hi, > > i know, that this is a bit off topic, and i have to say in advance that > we mostly use MapServer on Linux, but now we have to create a windows > mapserver (already compiled...) and than package everything into a > windows binary installation. I know a lot of folks are doing that out > there, could somebody give me advice how to do that, e.g. i assume i > need an installer program like wise package studio ? Thanks for your > help, > > Michael -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From thfischer@mapmedia.de Mon Feb 3 11:51:24 2003 From: thfischer@mapmedia.de (Thorsten Fischer) Date: 03 Feb 2003 12:51:24 +0100 Subject: [Mapserver-users] creating windows binary installation package ?? In-Reply-To: <3E3E3470.500B6B54@webgis.de> References: <3E3E3470.500B6B54@webgis.de> Message-ID: <1044273085.835.11.camel@grobi> Hello Michael, > i know, that this is a bit off topic, and i have to say in advance that > we mostly use MapServer on Linux, but now we have to create a windows > mapserver (already compiled...) and than package everything into a > windows binary installation. I know a lot of folks are doing that out > there, could somebody give me advice how to do that, e.g. i assume i > need an installer program like wise package studio ? Thanks for your > help, "We", i.e. the company I work with, are selling something like that already. It's called MapMedia MapServer Suite and includes a pre-compiled binary, command line tools, pre-configured demos, a bunch of documentation and so on. It's only available in german so far; this will change soon. By the way, as you are from Germany (or at least your company is) I am really wondering how you managed to escape our shameless advertising ;) I haven't posted about it here because I wasn't sure if I should use this list as an advertising platform; but now I got a good reason to mention it :) With the package you will also get a copy of our great MapServer handbook. http://www.mapmedia.de/ is the URL, with contact addresses for pricing details etc. hth, thorsten -- Thorsten Fischer thfischer@mapmedia.de MapMedia - Kartographie und raumbezogene Informationssysteme Heilbronner Straße 10 D-10711 Berlin http://www.mapmedia.de tel: +49 (0)30 89 06 82 70 From klaus.zahradnik@sysinet.com Mon Feb 3 11:08:59 2003 From: klaus.zahradnik@sysinet.com (Klaus Zahradnik) Date: Mon, 03 Feb 2003 12:08:59 +0100 Subject: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 Message-ID: <200302030958.h139wZK03438@mail.sysinet.com> Hy- I found a thread concerning this problem in the archives. But there never was an answere to this issue. Now, since I have the same problem, and with RedHat beeing close to release version 8.1 I was wondering if in the meantime the problem was fixed, or if there is a workaround which does not involve installing RedHat 7.3. Our servers as of now still run on RH 7.3 but we are thinking of upgrading to 8.1 (depending on it's behavior). best regards Klaus Zahradnik From daniel.berstein@dmapas.com" Just an idea to enhance performace: Can you build SHP from PG? If your spatial datasource is SHP you should obtain higher map generation speeds, then modify your php script to instead of dynamically generation map images, write out a .map file for each map required, and finally invoke each mapserver using a batch file to generate all images. Regards, Daniel Berstein Z. Jefe de Proyectos, dmapas.com Eduardo Hyatt 583, Providencia, Santiago CHILE *(56) (2) 222 22 60 -----Mensaje original----- De: Juanse [SMTP:georef@tie.cl] Enviado el: Viernes, 31 de Enero de 2003 15:04 Para: mapserver-users@lists.gis.umn.edu; Lowell Filak Asunto: RE: [Mapserver-users] PHP undef WAS: Memory Leak? Extention Here is cloudy, no rain, high humidity, mild, some 22?C, no electricity or phone/internet problems envisaged, and we are at tuple 169 after 24 hours of process. We really need to increase speed. All 2322 tuples must be proceed for next monday, so to create the pdf files to print before next friday, so the Final Report ships to santiago and is there on monday. We foresee a 31 volumenes 7000 pages long document. Uff! We are running redhat linux apache server over a PIII 750 MHz, 256 Mb Ram, 40 Gb HD. We have asssembled PostgreSQL/GIS with Mapserver and are scripting with PHP. The spatial backend have 15 tables. 1 of 88000 tuples, and the rest between 1.000 and 10.000 tuples. All are Gist indexed. We will try now daniel morisette system() approach, in the mean time for any other guru's opinion here goes the code: setextent($extension["minx"],$extension["miny"],$extension["ma xx"] ,$extension["maxy"]); $sal = $punto->setXY($mapa_x,$mapa_y); $zoom = empty($factor) ? 1 : $factor; $map->zoompoint($zoom,$punto,$map->width, $map->height, $pre_ext); } } } $conexion = pg_connect("dbname=evidencia user=postgres password=pgsql"); $map = ms_newMapObj("eviden2.map"); $act = "select xmin(the_geom) as minx, xmax(the_geom) as maxx, ymin(the_geom) as miny, ymax(the_geom) as maxy, gid from titulosmerced_araucania where imagen is null and usurpada > 0 and gid > 0 order by gid "; $resultado = pg_exec($conexion,$act); for($i=0;$extension = pg_fetch_array($resultado,$i);$i++) { $capa = $map->getLayer(15); $titulo = $capa->getClass(0); $titulo->setexpression("\"". $extension["gid"] ."\""); $mapa_x = $map->width / 2; $mapa_y = $map->height / 2; navegar($map,$zoom,$extension,$mapa_x,$mapa_y); $img1 = $map->draw(); $url_mapa = $img1->saveWebImage(MS_PNG, 0, 0, 0); $img = $map->drawScaleBar(); $url_escala = $img->saveWebImage(MS_PNG, 0, 0, 0); $img = $map->drawReferenceMap(); $url_referencia = $img->saveWebImage(MS_PNG, 0, 0, 0); /* $img = $map->drawLegend(); $url_leyenda = $img->saveWebImage(MS_PNG, 0, 0, 0); */ $updt = "update titulosmerced_araucania set imagen='". $url_mapa . "', escala='". $url_escala . "', referencia='" . $url_referencia . "' where gid=".$extension["gid"] . "\n"; pg_exec($conexion,$updt); echo $updt; } ?> After processing some 50 tuples, starting at 2 tuples per minute, the memory is full and the process follows at less than one tuple per hour. juanse temuko-Chile ----- Original Message ----- From: Lowell Filak To: Sent: Friday, January 31, 2003 2:09 PM Subject: [Mapserver-users] PHP undef WAS: Memory Leak? > I will have to forward that request back to the list for the PHP folks to answer. > Anyone who can help, please reply to germangutierrezg@yahoo.es . > Thank you. > > The following message was sent by "Juanse" on Fri, 31 Jan 2003 10:40:56 -0300. > > > yes it is, but how to undef/close/destroyed? which command it is not in the > > docs. > > > > > > juanse > > temuko-chile > > > > ----- Original Message ----- > > From: Lowell Filak > > To: Juanse ; Mapserver-Users > > > > Sent: Friday, January 31, 2003 10:38 AM > > Subject: Re: [Mapserver-users] Memory Leak? > > > > > > > Shot in the dark, but is there a possibility that after a map is created > > the mapObj is not being undef/closed/destroyed and that is the leak your > > seeing? > > > Lowell F. > > > > > > The following message was sent by "Juanse" on Fri, 31 Jan > > 2003 10:27:27 -0300. > > > > > > > Hi everyone > > > > > > > > We have build this "mapmaker machine" scripting mapserver with php. > > > > > > > > The mapmaker machine need to do 2322 maps, comprised of a.- the map, b > > the > > > > legend, c.- the reference map. > > > > The application created the regional map (10 layers, 2 with thematic > > clases) > > > > then centers over the specified spot (center of each of 2322 polygons in > > one > > > > of the layers stored in postgresql). > > > > Then mapserver render the 3 images (png) and stores the *.png files in a > > > > file and the file names in the speceified columns in the postgresql > > table. > > > > > > > > if one check the process (top) the memory fill up after 90 spots, and > > then > > > > the whole machine work very slowly (20 maps per night). At this speed we > > > > need more than a 100 days to finish? > > > > > > > > Is there any command to free mapserver from memory? Does mapserver have > > any > > > > know memory leaks? > > > > > > > > > > > > Juanse > > > > temuko-Chile > > > > > > > > > > > > > > > > --- > > > > Outgoing mail is certified Virus Free. > > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > > Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03 > > > > > > > > _______________________________________________ > > > > Mapserver-users mailing list > > > > Mapserver-users@lists.gis.umn.edu > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Mon Feb 3 13:39:25 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Feb 2003 08:39:25 -0500 Subject: [Mapserver-users] help:labels Message-ID: <200302031335.h13DZaR31339@yogi.medinaco.net> Could you give a little more information? Thanks. Lowell F. The following message was sent by pia rose trias on Mon, 3 Feb 2003 15:00:49 +0800. > hi! i am using mapscript, I would like to know how can I make labels.can > anyone help me.tnx! > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From t_lalla20@yahoo.com Mon Feb 3 15:35:11 2003 From: t_lalla20@yahoo.com (Terrence Lalla) Date: Mon, 3 Feb 2003 07:35:11 -0800 (PST) Subject: [Mapserver-users] configure PHP as a cgi Message-ID: <20030203153511.68665.qmail@web14101.mail.yahoo.com> --0-684745527-1044286511=:67549 Content-Type: text/plain; charset=us-ascii Hello, I am new to Mapserver and trying to make PHPMapscript work with PHP 4.3.0 However, the following errors keep coming up in the browser. I am on Windows XP. Web Server is Apache. Fatal error: Due to thread-safety problems, php_mapscript cannot be used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as a CGI to run this version of MapScript. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in c:\apache\htdocs\trinidad\help.php on line 4 Any Suggestions. Terrence. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --0-684745527-1044286511=:67549 Content-Type: text/html; charset=us-ascii

Hello,

I am new to Mapserver and trying to make PHPMapscript work with PHP 4.3.0 However, the following errors keep coming up in the browser. I am on Windows XP. Web Server is Apache.

Fatal error: Due to thread-safety problems, php_mapscript cannot be used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as a CGI to run this version of MapScript. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in c:\apache\htdocs\trinidad\help.php on line 4

Any Suggestions.

Terrence.



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now --0-684745527-1044286511=:67549-- From r000t@adelphia.net Mon Feb 3 15:44:08 2003 From: r000t@adelphia.net (Jim Burnett) Date: Mon, 3 Feb 2003 10:44:08 -0500 Subject: [Mapserver-users] configure PHP as a cgi References: <20030203153511.68665.qmail@web14101.mail.yahoo.com> Message-ID: <006401c2cb9b$1766fcf0$9601a8c0@emasi.com> This is a multi-part message in MIME format. ------=_NextPart_000_0061_01C2CB71.2E63A360 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable try recompiling php as CGI. ./configure --help ----- Original Message -----=20 From: Terrence Lalla=20 To: mapserver-users@lists.gis.umn.edu=20 Sent: Monday, February 03, 2003 10:35 AM Subject: [Mapserver-users] configure PHP as a cgi Hello, I am new to Mapserver and trying to make PHPMapscript work with PHP = 4.3.0 However, the following errors keep coming up in the browser. I am = on Windows XP. Web Server is Apache. Fatal error: Due to thread-safety problems, php_mapscript cannot be = used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as a = CGI to run this version of MapScript. See = http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in = c:\apache\htdocs\trinidad\help.php on line 4 Any Suggestions. Terrence. -------------------------------------------------------------------------= ----- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------=_NextPart_000_0061_01C2CB71.2E63A360 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
try recompiling php as CGI. ./configure = --help
 
----- Original Message -----
From:=20 Terrence=20 Lalla
To: mapserver-users@lists.g= is.umn.edu=20
Sent: Monday, February 03, 2003 = 10:35=20 AM
Subject: [Mapserver-users] = configure PHP=20 as a cgi

Hello,

I am new to Mapserver and trying to make PHPMapscript work with PHP = 4.3.0=20 However, the following errors keep coming up in the browser. I am on = Windows=20 XP. Web Server is Apache.

Fatal error: Due to thread-safety problems, = php_mapscript=20 cannot be used as a 'cgi-fcgi' module. You will have to reconfigure = your PHP=20 as a CGI to run this version of MapScript. See htt= p://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI.=20 in c:\apache\htdocs\trinidad\help.php on line 4

Any Suggestions.

Terrence.



Do you Yahoo!?
Yaho= o! Mail=20 Plus - Powerful. Affordable. Sign= up=20 now ------=_NextPart_000_0061_01C2CB71.2E63A360-- From assefa@dmsolutions.ca Mon Feb 3 15:53:06 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 03 Feb 2003 10:53:06 -0500 Subject: [Mapserver-users] configure PHP as a cgi References: <20030203153511.68665.qmail@web14101.mail.yahoo.com> Message-ID: <3E3E9062.A77905D9@dmsolutions.ca> --------------3B206CAD5D035327BF7B3B23 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi There, There is a code in php_mapscript.c (around line 1059) if (sapi_module.name && (strcmp(sapi_module.name, "cgi") != 0) It should be replaced by if (sapi_module.name && (strcmp(sapi_module.name, "cgi") != 0) && (strcmp(sapi_module.name, "cgi-fcgi") != 0)) I will commit that in the 3.6.4 branch. Later, Terrence Lalla wrote: > Hello, > > I am new to Mapserver and trying to make PHPMapscript work with PHP > 4.3.0 However, the following errors keep coming up in the browser. I > am on Windows XP. Web Server is Apache. > > Fatal error: Due to thread-safety problems, php_mapscript cannot be > used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as > a CGI to run this version of MapScript. See > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in > c:\apache\htdocs\trinidad\help.php on line 4 > > Any Suggestions. > > Terrence. > > > ----------------------------------------------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- --------------3B206CAD5D035327BF7B3B23 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi There,

 There is a code in php_mapscript.c (around line 1059)

    if (sapi_module.name && (strcmp(sapi_module.name, "cgi") != 0)

 It should be replaced by
 

    if (sapi_module.name && (strcmp(sapi_module.name, "cgi") != 0) &&
        (strcmp(sapi_module.name, "cgi-fcgi") != 0))

 I will commit that in the 3.6.4 branch.

Later,

Terrence Lalla wrote:

Hello,

I am new to Mapserver and trying to make PHPMapscript work with PHP 4.3.0 However, the following errors keep coming up in the browser. I am on Windows XP. Web Server is Apache.

Fatal error: Due to thread-safety problems, php_mapscript cannot be used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as a CGI to run this version of MapScript. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in c:\apache\htdocs\trinidad\help.php on line 4

Any Suggestions.

Terrence.
 


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------
  --------------3B206CAD5D035327BF7B3B23-- From pia_rose.trias@up.edu.ph Mon Feb 3 16:53:03 2003 From: pia_rose.trias@up.edu.ph (pia rose trias) Date: Tue, 4 Feb 2003 00:53:03 +0800 Subject: [Mapserver-users] Re: Mapserver-users digest, Vol 1 #60 - 14 msgs In-Reply-To: <20030201180002.5252.80417.Mailman@lists.gis.umn.edu> References: <20030201180002.5252.80417.Mailman@lists.gis.umn.edu> Message-ID: <1044291183.3e3e9e6f96f4a@mail.up.edu.ph> hi! can anyone help me, i can't find something wrong with my code but it doesnt change the data that I intended to change like the width and the extent. i am using mapscript,can anyone help me $refmap=$map->reference; $refmap->extent->setExtent($ans3, $ans4, $ans5, $ans6); $refmap->set('image',$filename3); $refmap->set('width', 100); From dbarron@ddive.com Mon Feb 3 16:42:38 2003 From: dbarron@ddive.com (Dan Barron) Date: Mon, 03 Feb 2003 08:42:38 -0800 Subject: [Mapserver-users] configure PHP as a cgi In-Reply-To: <20030203153511.68665.qmail@web14101.mail.yahoo.com> Message-ID: <5.2.0.9.0.20030203083526.041786c8@192.168.11.30> --=====================_247642765==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Terrence, I use Apache 1.3.27, PHP 4.3.0 w/ PHPMapscript 3.6 on W2K w/o any troubles. Below are the additions you should need to http.conf and php.ini. http.conf file ScriptAlias /php/ "c:/bin/php-4.3.0/" <- directory where php.exe lives> AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Action application/x-httpd-php "/php/php.exe" php.ini extension=php_mapscript_36.dll Dan At 07:35 AM 2/3/2003 -0800, Terrence Lalla wrote: >Hello, > >I am new to Mapserver and trying to make PHPMapscript work with PHP 4.3.0 >However, the following errors keep coming up in the browser. I am on >Windows XP. Web Server is Apache. > >Fatal error: Due to thread-safety problems, php_mapscript cannot be used >as a 'cgi-fcgi' module. You will have to reconfigure your PHP as a CGI to >run this version of MapScript. See >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. >in c:\apache\htdocs\trinidad\help.php on line 4 > >Any Suggestions. > >Terrence. > > > >Do you Yahoo!? >Yahoo! Mail >Plus - Powerful. Affordable. >Sign up now --=====================_247642765==.ALT Content-Type: text/html; charset="us-ascii" Terrence,

I use Apache 1.3.27, PHP 4.3.0 w/ PHPMapscript 3.6 on W2K w/o any troubles.  Below are the additions you should need to http.conf and php.ini.

http.conf file

ScriptAlias /php/     "c:/bin/php-4.3.0/"  <- directory where php.exe lives>
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php    "/php/php.exe"

php.ini

extension=php_mapscript_36.dll

Dan

At 07:35 AM 2/3/2003 -0800, Terrence Lalla wrote:

Hello,

I am new to Mapserver and trying to make PHPMapscript work with PHP 4.3.0 However, the following errors keep coming up in the browser. I am on Windows XP. Web Server is Apache.

Fatal error: Due to thread-safety problems, php_mapscript cannot be used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as a CGI to run this version of MapScript. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in c:\apache\htdocs\trinidad\help.php on line 4

Any Suggestions.

Terrence.



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--=====================_247642765==.ALT-- From dana@nextbus.com Mon Feb 3 18:34:38 2003 From: dana@nextbus.com (Dana Quinn) Date: Mon, 03 Feb 2003 10:34:38 -0800 Subject: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 References: <200302030958.h139wZK03438@mail.sysinet.com> Message-ID: <3E3EB63E.60807@nextbus.com> I have 3.6.3 running well with RH 8.0. I assume 3.6.4 wouldn't be much harder. What problems are you having? Are they mainly build problems? dana Klaus Zahradnik wrote: > Hy- > I found a thread concerning this problem in the archives. But there never was an answere to this issue. > > Now, since I have the same problem, and with RedHat beeing close to release version 8.1 I was wondering if in the meantime the problem was fixed, or if there is a workaround which does not involve installing RedHat 7.3. > > Our servers as of now still run on RH 7.3 but we are thinking of upgrading to 8.1 (depending on it's behavior). > > best regards > Klaus Zahradnik -- Dana Quinn, dana@nextbus.com NextBus Information Systems (510) 420-3117 From katarina.kobesova@chello.at Mon Feb 3 18:38:07 2003 From: katarina.kobesova@chello.at (Katarina Kobesova) Date: Mon, 3 Feb 2003 19:38:07 +0100 Subject: [Mapserver-users] 10. configure PHP as a cgi (Terrence Lalla) Message-ID: <000c01c2cbb3$64faae90$356a6e50@katti> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C2CBBB.C6ACC710 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi, This habe you to past in the httpd of the webserver (apache). Action application/x-httpd-php "/php4/php.exe" (When you want configure PHP as module of webserver, it looks like this: LoadModule php4_module c:/php4/sapi/php4apache.dll) I think this can help you. Kati ------=_NextPart_000_0009_01C2CBBB.C6ACC710 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi,
 
This habe you to past in the httpd of = the webserver=20 (apache).
 
Action application/x-httpd-php=20 "/php4/php.exe"
 
(When you want configure PHP as module = of=20 webserver, it looks like this:
LoadModule php4_module=20 c:/php4/sapi/php4apache.dll)
 
I think this can help you.
 
Kati
------=_NextPart_000_0009_01C2CBBB.C6ACC710-- From ed@topozone.com Mon Feb 3 18:08:24 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Feb 2003 13:08:24 -0500 Subject: [Mapserver-users] image qyuality Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3C50@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2CBAF.3E228538 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Juanse - =20 You don't need to do anything at all. MapServer generates raster output = images that are X pixels wide by Y pixels high. When you print them, if = you print them at a high resolution, you will get a small, high-quality = image. If you print them at a low resolution you will get a large, = low-quality image. If you need an 8.5 inch by 11 inch 300-dpi image, = make one that is 2550 pixels (8.5 x 300) by 3300 pixels (11 x 300), = print it at 300 dpi, and you will get what you want. =20 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 -----Original Message----- From: Juanse [mailto:georef@tie.cl] Sent: Friday, January 31, 2003 12:53 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] image qyuality Is it possible to change image resolution other way than changing the = constant value (72 DPI) and recompiling mapserver? I need to increase it = for generating printed maps. Juanse temuko-Chile =20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system ( http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03 ------_=_NextPart_001_01C2CBAF.3E228538 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Juanse=20 -
 
You=20 don't need to do anything at all.  MapServer generates raster = output images=20 that are X pixels wide by Y pixels high.  When you print them, if = you print=20 them at a high resolution, you will get a small, high-quality = image.  If=20 you print them at a low resolution you will get a large, low-quality=20 image.  If you need an 8.5 inch by 11 inch 300-dpi image, make one = that is=20 2550 pixels (8.5 x 300) by 3300 pixels (11 x 300), print it at 300 dpi, = and you=20 will get what you want.
 
    - Ed

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

-----Original Message-----
From: Juanse=20 [mailto:georef@tie.cl]
Sent: Friday, January 31, 2003 12:53=20 PM
To: mapserver-users@lists.gis.umn.edu
Subject:=20 [Mapserver-users] image qyuality

Is it possible to change image resolution other way than changing = the=20 constant value (72 DPI) and recompiling mapserver? I need to increase = it =20 for generating printed maps.

Juanse
temuko-Chile
 

---
Outgoing mail is certified Virus Free.
Checked by = AVG=20 anti-virus system (http://www.grisoft.com).
Version: = 6.0.445=20 / Virus Database: 250 - Release Date: = 21/01/03
------_=_NextPart_001_01C2CBAF.3E228538-- From eric@gomoos.org Mon Feb 3 13:45:39 2003 From: eric@gomoos.org (Eric Bridger) Date: 03 Feb 2003 13:45:39 +0000 Subject: [Mapserver-users] Map Extent Message-ID: <1044279939.1455.54.camel@ubet.gomoos.org> Hi all. I am a new mapserver, mapscript user, about 2 weeks now. So first my thanks to all involved in developing a truly excellent application. We are using Mapserver 3.6.4 and mapscript to develop an Linux Apache/mod-perl oceanographic application. I am having trouble mapping the users map image mouse click to map coordinates with precision. At first I thought it might be the registration of the map datasets we were using (shape files) with one shaded relief jpg, so I switched to using the states_ugl data and the s1ex1.map from the 3.6 tutorial in a simple mapscript test and noticed the same issues. When adding a point symbol to the map at the location clicked, the symbol appears near where I expected but not exactly where I expected. The closer I click to the center of the map the closer the symbol registers. It appears to me that the y-coordinate is always on target, but that the x corrdinate is off. The closer to the edges of the map, the further off the x coordinate is. Perhaps this has to do with the fact that the map created 400x300 goes all the way from y=0 to y=400, but not from x=0 to x=300? The mapextent is gotten from the map object created from the map file. I calculate the map coordinates with code adapted from the mapquakes.pl example: if($q->param('img.x') && $q->param('imgext')) { # Make sure we got a click @imgext = split(' ', $q->param('imgext')); $x = $q->param('img.x'); $y = $q->param('img.y'); $cx = ($imgext[2]-$imgext[0])/($map->{width}-1); $cy = ($imgext[3]-$imgext[1])/($map->{height}-1); $x = $imgext[0] + $cx*$x; $y = $imgext[3] - $cy*$y; } Create a point object and add it to the map and display it. Par of the map file: MAP EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "/home/eric/work/htdocs/mapserver/tutorial35/data" # Added by EB IMAGETYPE PNG UNITS DD LAYER # States NAME "lobster_zones" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object .... Thanks. Eric Bridger eric@gomoos.org Gulf of Maine Ocean Observing System www.gomoos.org From klaus.zahradnik@sysinet.com Mon Feb 3 18:46:09 2003 From: klaus.zahradnik@sysinet.com (Klaus Zahradnik) Date: Mon, 03 Feb 2003 19:46:09 +0100 Subject: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 In-Reply-To: <3E3EB63E.60807@nextbus.com> References: <3E3EB63E.60807@nextbus.com> Message-ID: <200302031735.h13HZiK05956@mail.sysinet.com> Hy- To make it short, here is the link with the message I get: http://lists.gis.umn.edu/pipermail/mapserver-users/2002-December/000378.html It already has been posted, but there was no answere (at least google makes it look like that ;o) ) berst regagrds Klaus > -----Ursprüngliche Nachricht----- > Von: Dana Quinn > Gesendet: Monday, 03. February 2003 19:34 > An: Klaus Zahradnik > Betreff: Re: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 > > > I have 3.6.3 running well with RH 8.0. I assume 3.6.4 wouldn\\'t be > much harder. What problems are you having? Are they mainly build > problems? > > dana > > > > Klaus Zahradnik wrote: > > > Hy- > > I found a thread concerning this problem in the archives. But there never was an answere to this issue. > > > > Now, since I have the same problem, and with RedHat beeing close to release version 8.1 I was wondering if in the meantime the problem was fixed, or if there is a workaround which does not involve installing RedHat 7.3. > > > > Our servers as of now still run on RH 7.3 but we are thinking of upgrading to 8.1 (depending on it\\'s behavior). > > > > best regards > > Klaus Zahradnik > > > > -- > > Dana Quinn, dana@nextbus.com > NextBus Information Systems > (510) 420-3117 > -- --------------------------------------------- Klaus Zahradnik Systemadministrator iNet Internet Plattform Neudoerflerstrasse 2 A - 2700 Wiener Neustadt Tel.: ++43 (0)2622 / 24480 13 Fax.: ++43 (0)2622 / 24480 20 WWW: http://www.sysinet.com eMail: klaus.zahradnik@sysinet.com --------------------------------------------- From dana@nextbus.com Mon Feb 3 19:00:27 2003 From: dana@nextbus.com (Dana Quinn) Date: Mon, 03 Feb 2003 11:00:27 -0800 Subject: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 References: <3E3EB63E.60807@nextbus.com> <200302031735.h13HZiK05956@mail.sysinet.com> Message-ID: <3E3EBC4B.90609@nextbus.com> Klaus Zahradnik wrote: > Hy- > To make it short, here is the link with the message I get: > http://lists.gis.umn.edu/pipermail/mapserver-users/2002-December/000378.html > > It already has been posted, but there was no answere (at least google makes it look like that ;o) ) > > berst regagrds > Klaus Klaus- I think you're in luck with this problem. If you can provide the right search strings to the search engine for the mailing list search engine, you can find some discussion on this error message. I think this post is the most succint at how to fix the problem: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00337.html I was able to follow that advice and get everything working. This is specifically what I did (this is directly from that post): >> Or try editing your Makefile and add "-lstdc++" as shown below STATIC_LIBS= $(GD_STATIC) $(OGR_STATIC) -lstdc++ >> You'll need to do something similar if you use Perl/Mapscript. There was some discussion of that issue on the mailing list, and there is a small section in the wiki about Perl Mapscript and RH 8.0. dana -- Dana Quinn, dana@nextbus.com NextBus Information Systems (510) 420-3117 From RUBINJ@gov.ns.ca Mon Feb 3 20:03:51 2003 From: RUBINJ@gov.ns.ca (John Rubin) Date: Mon, 03 Feb 2003 16:03:51 -0400 Subject: [Mapserver-users] Run a C program from an HTML page ? Message-ID: Dear folks, I am trying to change a map file on the fly. I wish to change the name and data in a layer, in a map file, from an html form text input. Does anyone know how to execute a compiled C program from an HTML page, and return to the html page . Thanks John John Rubin Telephone: 902-893-5712 E-mail: RUBINJ@gov.ns.ca From jmmichia@ciudad.com.ar Mon Feb 3 20:10:17 2003 From: jmmichia@ciudad.com.ar (=?iso-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 3 Feb 2003 17:10:17 -0300 Subject: [Mapserver-users] Problems with Java Interface Message-ID: <00e701c2cbc0$45152c10$df02a8c0@pm.rosario.gov.ar> Hi! I'm using MapScript (Java interface) for web-based GIS. I'm trying to add postgis layers on run-time. For example, this DATA string: "the_geom from (SELECT AsText(ruta.the_geom) AS the_geom, ruta.oid AS oid, ruta.mslink AS mslink, ruta.id_ruta AS id_ruta FROM ruta WHERE id_ruta='8') as foo1 using unique oid using srid=-1" represents a routh beetwen 2 points on the street network. If the layer is added on run time, with this data string, the web-server work fine, but only for 2 or 3 or 4 request, after that, the server die, because an error outside the Java Virtual Machine (in mapObj.draw()). But, if the layer is added on the MAP file used for instantiate the mapObj, the web-server work fine every time ?!?!?! How solve-debug this? I try to log MapServer, with weblog field (in mapfile) but with mapscript this not work or something). Please, help me. Sorry my english, and thanks in advance. José María Michia More info: ---------------------------------------------------------------------------- ------------------------------------------------ The versions: MapServer 3.6.4 (with 3.6.3, no difference) PostgreSQL 7.2.1 - PostGIS 0.7.3 Tomcat 4.1.12 - JDK 1.3 ---------------------------------------------------------------------------- -------------------------------------------- The ruta's table: Table "ruta" Column | Type | Modifiers ----------+----------+----------- id_ruta | integer | mslink | integer | the_geom | geometry | Indexes: ruta_geom_index, ruta_id_mslink_index, ruta_id_ruta_index, ruta_oid_index Check constraints: "$1" (srid(the_geom) = -1) "$2" ((geometrytype(the_geom) = 'MULTILINESTRING'::text) OR (the_geom IS NULL)) ---------------------------------------------------------------------------- ------------------------------------------------ The catalina.out (tomcat log): SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER [pid: 0, uid: 0] stackpointer=0x46b4a85c Full thread dump Classic VM (1.3.1_02-b02, green threads): "StandardManager[/mtallari/sitio]" (TID:0x40e7ff68, sys_thread_t:0x8c17158, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "WebappLoader[/mtallari/sitio]" (TID:0x40d2aac0, sys_thread_t:0x8bd66b8, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1221) at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341) at java.lang.Thread.run(Thread.java:484) "MonitorRunnable" (TID:0x40e3a3a0, sys_thread_t:0x925f508, state:CW) prio=5 at java.lang.Object.wait(Native Method) at org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav a:423) at java.lang.Thread.run(Thread.java:484) "Thread-9" (TID:0x40e3a660, sys_thread_t:0x92bf9d0, state:CW) prio=5 at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:468) at java.net.ServerSocket.implAccept(ServerSocket.java:243) at java.net.ServerSocket.accept(ServerSocket.java:222) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:254) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:504) at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:619) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:484) "Thread-8" (TID:0x40e3a5e8, sys_thread_t:0x92b7478, state:CW) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:512) at java.lang.Thread.run(Thread.java:484) "Thread-7" (TID:0x40e3a580, sys_thread_t:0x9392c40, state:CW) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:512) at java.lang.Thread.run(Thread.java:484) "Thread-6" (TID:0x40e3a828, sys_thread_t:0x93916b0, state:CW) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:512) at java.lang.Thread.run(Thread.java:484) "MonitorRunnable" (TID:0x40e3f1d0, sys_thread_t:0x92a67f8, state:CW) prio=5 at java.lang.Object.wait(Native Method) at org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav a:423) at java.lang.Thread.run(Thread.java:484) "Thread-4" (TID:0x40e3fbc8, sys_thread_t:0x921b310, state:CW) prio=5 at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:468) at java.net.ServerSocket.implAccept(ServerSocket.java:243) at java.net.ServerSocket.accept(ServerSocket.java:222) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe rverSocketFactory.java:107) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java :335) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:484) "Thread-3" (TID:0x40e3fec8, sys_thread_t:0x9046c20, state:R) prio=5 at edu.umn.gis.mapscript.mapscript.mapObj_draw(Native Method) at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:267) at jmap.MapBean.getImage(MapBean.java:352) at org.apache.jsp.Map2_jsp._jspService(Map2_jsp.java:398) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:484) "Thread-2" (TID:0x40e3fe40, sys_thread_t:0x904d6a0, state:CW) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:512) at java.lang.Thread.run(Thread.java:484) "Thread-1" (TID:0x40e3fdc0, sys_thread_t:0x920d300, state:CW) prio=5 at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:90) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:7 67) at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputB uffer.java:428) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:382) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:484) "HostConfig[localhost]" (TID:0x40e40a90, sys_thread_t:0x9223830, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.startup.HostConfig.threadSleep(HostConfig.java:985) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:1009) at java.lang.Thread.run(Thread.java:484) "StandardManager[/jmichia0]" (TID:0x40e44b50, sys_thread_t:0x92c0d98, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "StandardManager[/webdav]" (TID:0x40e8c768, sys_thread_t:0x92207b0, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "StandardManager[]" (TID:0x40e2a400, sys_thread_t:0x9300830, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "StandardManager[/tomcat-docs]" (TID:0x40e1e468, sys_thread_t:0x92ff2a0, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "StandardManager[/admin]" (TID:0x40e77dd8, sys_thread_t:0x924b258, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "StandardManager[/manager]" (TID:0x40e760a0, sys_thread_t:0x92818f8, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "StandardManager[/mtallari/sitio2]" (TID:0x40e5ec58, sys_thread_t:0x9024d38, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "WebappLoader[/mtallari/sitio2]" (TID:0x40e88b38, sys_thread_t:0x906ba40, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1221) at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341) at java.lang.Thread.run(Thread.java:484) "StandardManager[/appt1]" (TID:0x40e71c70, sys_thread_t:0x9043940, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "WebappLoader[/appt1]" (TID:0x40eae088, sys_thread_t:0x9020d90, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1221) at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341) at java.lang.Thread.run(Thread.java:484) "StandardManager[/mtallari/gis]" (TID:0x40e87a78, sys_thread_t:0x8e0ec98, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "WebappLoader[/mtallari/gis]" (TID:0x40ec1360, sys_thread_t:0x8dc3bc0, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1221) at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341) at java.lang.Thread.run(Thread.java:484) "StandardManager[/examples]" (TID:0x40eca708, sys_thread_t:0x8bee418, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "WebappLoader[/examples]" (TID:0x40eabc70, sys_thread_t:0x8bd2c68, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1221) at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341) at java.lang.Thread.run(Thread.java:484) "StandardManager[/jmichia0/gis]" (TID:0x40ea3da8, sys_thread_t:0x8bb8cd8, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java :780) at org.apache.catalina.session.StandardManager.run(StandardManager.java:839) at java.lang.Thread.run(Thread.java:484) "WebappLoader[/jmichia0/gis]" (TID:0x40eef6b0, sys_thread_t:0x8a67900, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1221) at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341) at java.lang.Thread.run(Thread.java:484) "Finalizer" (TID:0x40ef5528, sys_thread_t:0x80c8628, state:CW) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162) "Reference Handler" (TID:0x40ef5300, sys_thread_t:0x80c35e0, state:CW) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110) "Signal dispatcher" (TID:0x40ef5330, sys_thread_t:0x80c0108, state:CW) prio=5 "main" (TID:0x40ef51b0, sys_thread_t:0x804d018, state:CW) prio=5 at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:468) at java.net.ServerSocket.implAccept(ServerSocket.java:243) at java.net.ServerSocket.accept(ServerSocket.java:222) at org.apache.catalina.core.StandardServer.await(StandardServer.java:526) at org.apache.catalina.startup.Catalina.start(Catalina.java:519) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Monitor Cache Dump: java.net.PlainSocketImpl@40E38860/4144F4A8: owner "main" (0x804d018) 1 entry org.apache.tomcat.util.threads.ThreadPool$ControlRunnable@40E3A820/414485C8: Waiting to be notified: "Thread-6" (0x93916b0) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable@40E3A528/41448680: Waiting to be notified: "Thread-7" (0x9392c40) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable@40E3A5E0/41448738: Waiting to be notified: "Thread-8" (0x92b7478) org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable@40E3F1C8/41444A08: Waiting to be notified: "MonitorRunnable" (0x92a67f8) java.lang.ref.ReferenceQueue$Lock@40EF5540/40F2B460: Waiting to be notified: "Finalizer" (0x80c8628) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable@40E3FE28/4143D560: Waiting to be notified: "Thread-2" (0x904d6a0) java.net.PlainSocketImpl@40E3A6D0/41448480: owner "Thread-9" (0x92bf9d0) 1 entry java.net.PlainSocketImpl@40EE7360/410CEBE0: owner "Thread-4" (0x921b310) 1 entry java.lang.ref.Reference$Lock@40EF5310/40F2AF80: Waiting to be notified: "Reference Handler" (0x80c35e0) org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable@40E3A398/41448A20: Waiting to be notified: "MonitorRunnable" (0x925f508) Registered Monitor Dump: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "Thread-3" (0x9046c20) 1 entry Dynamic loading lock: Monitor IO lock: User signal monitor: Waiting to be notified: "Signal dispatcher" (0x80c0108) Child death monitor: I/O monitor: Alarm monitor: Waiting to be notified: (0x8057478) Thread queue lock: owner "Thread-3" (0x9046c20) 1 entry Monitor registry: owner "Thread-3" (0x9046c20) 1 entry ---------------------------------------------------------------------------- ------------------------------------------------ From Chip.Hankley@GASAI.Com Mon Feb 3 20:20:11 2003 From: Chip.Hankley@GASAI.Com (Hankley, Chip) Date: Mon, 3 Feb 2003 14:20:11 -0600 Subject: [Mapserver-users] Run a C program from an HTML page ? Message-ID: <3DFF131E4E6D2D4198CDD758F35A535302785357@postoffice.GASAI.Com> John - there are various ways that you can execute programs on the server side using ASP, PHP, Perl, etc. However, my question would be "why re-invent the wheel?" You can already do what you want to do from within MapScript. MapScript provides almost limitless control over the mapfile, etc. Chip > -----Original Message----- > From: John Rubin [mailto:RUBINJ@gov.ns.ca] > Sent: Monday, February 03, 2003 2:04 PM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] Run a C program from an HTML page ? > > > Dear folks, > > I am trying to change a map file on the fly. I wish to > change the name and data in a layer, in a map file, from an > html form text input. Does anyone know how to execute a > compiled C program from an HTML page, and return to the html page . > > Thanks > > John > > John Rubin > Telephone: 902-893-5712 > E-mail: RUBINJ@gov.ns.ca > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From ed@topozone.com Mon Feb 3 20:06:35 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Feb 2003 15:06:35 -0500 Subject: [Mapserver-users] image qyuality Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3C53@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2CBBF.C114185E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The scale bar won't have any problems. If you generate the map and the = scale bar the same way, they will be correctly proportioned to each = other. If you print them both at the same output resolution, they will = look fine, no matter what that resolution is. =20 - Ed -----Original Message----- From: Juanse [mailto:georef@tie.cl] Sent: Friday, January 31, 2003 2:33 PM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] image qyuality Right, but how do you take care of the scale? =20 I am generating the map, the scale and the reference map as different = png, with the png names stored in a database. On other process I am = generating a pdf output with all the images. =20 If I double (say from 72 to 144) the size of the map, I should do the = same with the scale size? =20 Juanse temuko-Chile =20 =20 ----- Original Message -----=20 From: Ed McNierney =20 To: Juanse ; mapserver-users@lists.gis.umn.edu=20 Sent: Monday, February 03, 2003 3:08 PM Subject: RE: [Mapserver-users] image qyuality Juanse - =20 You don't need to do anything at all. MapServer generates raster output = images that are X pixels wide by Y pixels high. When you print them, if = you print them at a high resolution, you will get a small, high-quality = image. If you print them at a low resolution you will get a large, = low-quality image. If you need an 8.5 inch by 11 inch 300-dpi image, = make one that is 2550 pixels (8.5 x 300) by 3300 pixels (11 x 300), = print it at 300 dpi, and you will get what you want. =20 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 -----Original Message----- From: Juanse [mailto:georef@tie.cl] Sent: Friday, January 31, 2003 12:53 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] image qyuality Is it possible to change image resolution other way than changing the = constant value (72 DPI) and recompiling mapserver? I need to increase it = for generating printed maps. Juanse temuko-Chile =20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system ( http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03 ------_=_NextPart_001_01C2CBBF.C114185E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
The=20 scale bar won't have any problems.  If you generate the map and the = scale=20 bar the same way, they will be correctly proportioned to each = other.  If=20 you print them both at the same output resolution, they will look fine, = no=20 matter what that resolution is.
 
    - Ed
-----Original Message-----
From: Juanse=20 [mailto:georef@tie.cl]
Sent: Friday, January 31, 2003 2:33=20 PM
To: Ed McNierney
Cc:=20 mapserver-users@lists.gis.umn.edu
Subject: RE: = [Mapserver-users]=20 image qyuality

Right, but how do you take care of = the=20 scale?
 
I am generating the map, the scale = and the=20 reference map as different png, with the png names stored in a = database. On=20 other process I am generating a pdf output with all the = images.
 
If I double (say from 72 to 144) the = size of the=20 map,  I should do the same with the scale size?
 
Juanse
temuko-Chile
 
 
----- Original Message -----
From:=20 Ed = McNierney=20
To: Juanse ; mapserver-users@lists.g= is.umn.edu=20
Sent: Monday, February 03, = 2003 3:08=20 PM
Subject: RE: = [Mapserver-users] image=20 qyuality

Juanse -
 
You don't need to do anything at all.  MapServer = generates=20 raster output images that are X pixels wide by Y pixels high.  = When you=20 print them, if you print them at a high resolution, you will get a = small,=20 high-quality image.  If you print them at a low resolution you = will get=20 a large, low-quality image.  If you need an 8.5 inch by 11 inch = 300-dpi=20 image, make one that is 2550 pixels (8.5 x 300) by 3300 pixels (11 x = 300),=20 print it at 300 dpi, and you will get what you = want.
 
    - Ed

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

-----Original Message-----
From: Juanse=20 [mailto:georef@tie.cl]
Sent: Friday, January 31, 2003 = 12:53=20 PM
To: = mapserver-users@lists.gis.umn.edu
Subject:=20 [Mapserver-users] image qyuality

Is it possible to change image resolution other way than = changing the=20 constant value (72 DPI) and recompiling mapserver? I need to = increase=20 it  for generating printed maps.

Juanse
temuko-Chile
 

---
Outgoing mail is certified Virus Free.
Checked = by AVG=20 anti-virus system (http://www.grisoft.com).
Version: = 6.0.445 / Virus Database: 250 - Release Date:=20 21/01/03
------_=_NextPart_001_01C2CBBF.C114185E-- From ed@topozone.com Mon Feb 3 20:13:21 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Feb 2003 15:13:21 -0500 Subject: [Mapserver-users] Map Extent Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3C54@mercator.topozone.com> Eric - You will get predictable but unexpected results if your map image size and your map extents are not proportional. In your case, you're using a "geographic" projection, so latitude and longitude are treated as planar X/Y coordinates. You're asking for an image that's 15 degrees wide (X dimension) and 8 degrees high (Y dimension) - so the X extent of the image is about 1.5 times the height. But you're asking for an image that's 400 pixels wide by 300 pixels high, or about 1.3 times as wide as it is high. The shapes of the two rectangles are not the same. Since MapServer does not produce distorted maps, it will adjust the requested X and Y extents of the map in order to be proportional to the size of the requested output image. Unless you make the same adjustment, your output X and Y extents won't be what you expect. The easiest fix is to simply change the EXTENTS of the map so the ratio (delta longitude) / (delta latitude) = 400 / 300 in your case. Once you get that fixed, we'll start working on why you're mapping lobsters in Michigan.... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Eric Bridger [mailto:eric@gomoos.org] Sent: Monday, February 03, 2003 8:46 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Map Extent Hi all. I am a new mapserver, mapscript user, about 2 weeks now. So first my thanks to all involved in developing a truly excellent application. We are using Mapserver 3.6.4 and mapscript to develop an Linux Apache/mod-perl oceanographic application. I am having trouble mapping the users map image mouse click to map coordinates with precision. At first I thought it might be the registration of the map datasets we were using (shape files) with one shaded relief jpg, so I switched to using the states_ugl data and the s1ex1.map from the 3.6 tutorial in a simple mapscript test and noticed the same issues. When adding a point symbol to the map at the location clicked, the symbol appears near where I expected but not exactly where I expected. The closer I click to the center of the map the closer the symbol registers. It appears to me that the y-coordinate is always on target, but that the x corrdinate is off. The closer to the edges of the map, the further off the x coordinate is. Perhaps this has to do with the fact that the map created 400x300 goes all the way from y=0 to y=400, but not from x=0 to x=300? The mapextent is gotten from the map object created from the map file. I calculate the map coordinates with code adapted from the mapquakes.pl example: if($q->param('img.x') && $q->param('imgext')) { # Make sure we got a click @imgext = split(' ', $q->param('imgext')); $x = $q->param('img.x'); $y = $q->param('img.y'); $cx = ($imgext[2]-$imgext[0])/($map->{width}-1); $cy = ($imgext[3]-$imgext[1])/($map->{height}-1); $x = $imgext[0] + $cx*$x; $y = $imgext[3] - $cy*$y; } Create a point object and add it to the map and display it. Par of the map file: MAP EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "/home/eric/work/htdocs/mapserver/tutorial35/data" # Added by EB IMAGETYPE PNG UNITS DD LAYER # States NAME "lobster_zones" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object .... Thanks. Eric Bridger eric@gomoos.org Gulf of Maine Ocean Observing System www.gomoos.org _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From dlowther@ou.edu Mon Feb 3 20:47:12 2003 From: dlowther@ou.edu (Lowther, David W) Date: Mon, 3 Feb 2003 14:47:12 -0600 Subject: [Mapserver-users] Thematic Mapping Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2CBC5.6D391AD0 Content-Type: text/plain Hi Folks, I have an application in place for a client that returns a list of hits by county based on search criteria. The user then has the option to map these results shading counties with more results darker and those with less lighter. The number of classes is set, but the current application decides what the upper and lower bounds for each class should be based on the total number of results. So that the class ranges fit the total number of data elements. My first though on moving this to mapserver was that I would need to set up a layer with the right number of classes and set the mapfile for the classitem. Then use the map_layername_classname_expression to set the expression for each class. Is this the best way to do this or is there any built in thematic mapping capability that I should check out? Any other suggestions would be greatly appreciated. David Lowther Software Engineer GEO Information Systems University of Oklahoma dlowther@ou.edu (405) 325-3131 http://www.geo.ou.edu ------_=_NextPart_001_01C2CBC5.6D391AD0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Thematic Mapping

Hi Folks,

I have an application in place for a = client that returns a list of hits by county based on search criteria. = The user then has the option to map these results shading counties with = more results darker and those with less lighter. The number of classes = is set, but the current application decides what the upper and lower = bounds for each class should be based on the total number of results. = So that the class ranges fit the total number of data elements. =

My first though on moving this to = mapserver was that I would need to set up a layer with the right number = of classes and set the mapfile for the classitem. Then use the = map_layername_classname_expression to set the expression for each = class. Is this the best way to do this or is there any built in = thematic mapping capability that I should check out?

Any other suggestions would be greatly = appreciated.

David Lowther
Software Engineer
GEO Information Systems
University of Oklahoma
dlowther@ou.edu
(405) 325-3131
http://www.geo.ou.edu



------_=_NextPart_001_01C2CBC5.6D391AD0-- From dlowther@ou.edu Mon Feb 3 20:48:42 2003 From: dlowther@ou.edu (Lowther, David W) Date: Mon, 3 Feb 2003 14:48:42 -0600 Subject: [Mapserver-users] Thematic Mapping Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2CBC5.A2DE03D0 Content-Type: text/plain Here's a link to the existing app: http://www.geo.ou.edu/botanical/ -----Original Message----- From: Lowther, David W [mailto:dlowther@ou.edu] Sent: Monday, February 03, 2003 2:47 PM To: Mapserver-Users (mapserver-users@lists.gis.umn.edu) Subject: [Mapserver-users] Thematic Mapping Hi Folks, I have an application in place for a client that returns a list of hits by county based on search criteria. The user then has the option to map these results shading counties with more results darker and those with less lighter. The number of classes is set, but the current application decides what the upper and lower bounds for each class should be based on the total number of results. So that the class ranges fit the total number of data elements. My first though on moving this to mapserver was that I would need to set up a layer with the right number of classes and set the mapfile for the classitem. Then use the map_layername_classname_expression to set the expression for each class. Is this the best way to do this or is there any built in thematic mapping capability that I should check out? Any other suggestions would be greatly appreciated. David Lowther Software Engineer GEO Information Systems University of Oklahoma dlowther@ou.edu (405) 325-3131 http://www.geo.ou.edu ------_=_NextPart_001_01C2CBC5.A2DE03D0 Content-Type: text/html Message
Here's a link to the existing app:
 
-----Original Message-----
From: Lowther, David W [mailto:dlowther@ou.edu]
Sent: Monday, February 03, 2003 2:47 PM
To: Mapserver-Users (mapserver-users@lists.gis.umn.edu)
Subject: [Mapserver-users] Thematic Mapping

Hi Folks,

I have an application in place for a client that returns a list of hits by county based on search criteria. The user then has the option to map these results shading counties with more results darker and those with less lighter. The number of classes is set, but the current application decides what the upper and lower bounds for each class should be based on the total number of results. So that the class ranges fit the total number of data elements.

My first though on moving this to mapserver was that I would need to set up a layer with the right number of classes and set the mapfile for the classitem. Then use the map_layername_classname_expression to set the expression for each class. Is this the best way to do this or is there any built in thematic mapping capability that I should check out?

Any other suggestions would be greatly appreciated.

David Lowther
Software Engineer
GEO Information Systems
University of Oklahoma
dlowther@ou.edu
(405) 325-3131
http://www.geo.ou.edu



------_=_NextPart_001_01C2CBC5.A2DE03D0-- From rgrant@nrcan.gc.ca Mon Feb 3 21:01:31 2003 From: rgrant@nrcan.gc.ca (Grant, Ryan) Date: Mon, 3 Feb 2003 16:01:31 -0500 Subject: [Mapserver-users] Error in msProcessProjection() Message-ID: <8AE17DD6AA4FD51191CD0002A551168184BB8A@s5-van1-r1.ess.nrcan.gc.ca> Hi all, I'm just in the process of moving one of our mapserver implementations to a new server. This is essentially just a clone, so all configs and everything have stayed the same, and so far all of my other implementations (cgi, other php pages) are working fine on the new server except for just this one: I'm currently getting this error from a php-mapscript page: MapServer Error in msProcessProjection(): no system list, errno: 2 It's occuring on the line that loads the map: $map = ms_newMapObj($map_file); Can anybody suggest a reason/possible fix? Did I maybe forget some security option somewhere or something? Thanks! Ryan From rgrant@nrcan.gc.ca Mon Feb 3 21:14:13 2003 From: rgrant@nrcan.gc.ca (Grant, Ryan) Date: Mon, 3 Feb 2003 16:14:13 -0500 Subject: [Mapserver-users] Error in msProcessProjection() Message-ID: <8AE17DD6AA4FD51191CD0002A551168184BB8B@s5-van1-r1.ess.nrcan.gc.ca> Apparently I forgot to copy over the proj directory.. Sorry to bother the group with such a silly problem.. Ryan -----Original Message----- From: Grant, Ryan [mailto:rgrant@nrcan.gc.ca] Sent: Monday, February 03, 2003 1:02 PM To: Mapserver Users (E-mail) Subject: [Mapserver-users] Error in msProcessProjection() Hi all, I'm just in the process of moving one of our mapserver implementations to a new server. This is essentially just a clone, so all configs and everything have stayed the same, and so far all of my other implementations (cgi, other php pages) are working fine on the new server except for just this one: I'm currently getting this error from a php-mapscript page: MapServer Error in msProcessProjection(): no system list, errno: 2 It's occuring on the line that loads the map: $map = ms_newMapObj($map_file); Can anybody suggest a reason/possible fix? Did I maybe forget some security option somewhere or something? Thanks! Ryan _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Mon Feb 3 21:07:47 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Feb 2003 16:07:47 -0500 Subject: [Mapserver-users] Error in msProcessProjection() Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3C58@mercator.topozone.com> Ryan - You forgot your PROJ directory installation. Be sure to copy the files from the "standard location" on your first system to the same location on your second. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Grant, Ryan [mailto:rgrant@nrcan.gc.ca] Sent: Monday, February 03, 2003 4:02 PM To: Mapserver Users (E-mail) Subject: [Mapserver-users] Error in msProcessProjection() Hi all, I'm just in the process of moving one of our mapserver implementations to a new server. This is essentially just a clone, so all configs and everything have stayed the same, and so far all of my other implementations (cgi, other php pages) are working fine on the new server except for just this one: I'm currently getting this error from a php-mapscript page: MapServer Error in msProcessProjection(): no system list, errno: 2 It's occuring on the line that loads the map: $map = ms_newMapObj($map_file); Can anybody suggest a reason/possible fix? Did I maybe forget some security option somewhere or something? Thanks! Ryan _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From jmmichia@ciudad.com.ar Mon Feb 3 21:41:08 2003 From: jmmichia@ciudad.com.ar (=?iso-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 3 Feb 2003 18:41:08 -0300 Subject: [Mapserver-users] Problems with Java Interface References: <00e701c2cbc0$45152c10$df02a8c0@pm.rosario.gov.ar> Message-ID: <000901c2cbcc$f66de7c0$df02a8c0@pm.rosario.gov.ar> Hi! With JDK 1.4, the problem persist. This fix the problem, but cause confusion on me: - Add a layer to MAP file used for initialization. This layer, take data from table "ruta". Set the layer status to OFF (DATA: "the_geom from ruta"). - Add the desired layer from ruta's table (with a DATA field like this: "the_geom from (SELECT AsText(ruta.the_geom) AS the_geom, ruta.oid AS oid, ruta.mslink AS mslink, ruta.id_ruta AS id_ruta FROM ruta WHERE id_ruta='8') as foo1 using unique oid using srid=-1"). And all works fine. Wath happens? Sorry my english, and thanks for your help. José María Michia Desarrollador SIG Rosario, Argentina From klaus.zahradnik@sysinet.com Mon Feb 3 21:52:16 2003 From: klaus.zahradnik@sysinet.com (Klaus Zahradnik) Date: Mon, 03 Feb 2003 22:52:16 +0100 Subject: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 In-Reply-To: <3E3EBC4B.90609@nextbus.com> References: <3E3EBC4B.90609@nextbus.com> Message-ID: <200302032041.h13KfpK06516@mail.sysinet.com> Oh, cool!thanks that worked. I honestely did not see that thread! Thanks again! > -----Ursprüngliche Nachricht----- > Von: Dana Quinn > Gesendet: Monday, 03. February 2003 20:00 > An: Klaus Zahradnik > Betreff: Re: [Mapserver-users] Mapserver 3.6.4 and RedHat 8.0 > > Klaus Zahradnik wrote: > > > Hy- > > To make it short, here is the link with the message I get: > > http://lists.gis.umn.edu/pipermail/mapserver-users/2002-December/000378.html > > > > It already has been posted, but there was no answere (at least google makes it look like that ;o) ) > > > > berst regagrds > > Klaus > > > Klaus- > I think you\\'re in luck with this problem. If you can provide > the right search strings to the search engine for the mailing list > search engine, you can find some discussion on this error message. > I think this post is the most succint at how to fix the problem: > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00337.html > > I was able to follow that advice and get everything working. This > is specifically what I did (this is directly from that post): > >> > Or try editing your Makefile and add "-lstdc++" as shown below > STATIC_LIBS= $(GD_STATIC) $(OGR_STATIC) -lstdc++ > >> > > You\\'ll need to do something similar if you use Perl/Mapscript. > There was some discussion of that issue on the mailing list, and > there is a small section in the wiki about Perl Mapscript and RH 8.0. > > dana > > > > > > > > -- > > Dana Quinn, dana@nextbus.com > NextBus Information Systems > (510) 420-3117 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- --------------------------------------------- Klaus Zahradnik Systemadministrator iNet Internet Plattform Neudoerflerstrasse 2 A - 2700 Wiener Neustadt Tel.: ++43 (0)2622 / 24480 13 Fax.: ++43 (0)2622 / 24480 20 WWW: http://www.sysinet.com eMail: klaus.zahradnik@sysinet.com --------------------------------------------- From Antti.Roppola@brs.gov.au Tue Feb 4 00:08:25 2003 From: Antti.Roppola@brs.gov.au (Antti.Roppola@brs.gov.au) Date: Tue, 4 Feb 2003 11:08:25 +1100 Subject: [Mapserver-users] Optimising PostGIS relates/subselects/views Message-ID: <3E4215C93D3CE24D84A9FF385DF88D8714489C@afeb-ms-02> Hello all, If I have my attribute data and PostGIS geometries in the same table, my map draws in around 4 seconds. Viz: DATA "the_geom from mylayer" CLASSITEM "value" If I use attributes from other tables, my map draws in 82 seconds. Viz: DATA "the_geom FROM (SELECT mylayer.oid AS oid, mylayer.the_geom AS the_geom, mytable.value AS value FROM mylayer, mytable WHERE mylayer.lut=mytable.lut) AS mylayer USING oid USING srid=-1" CLASSITEM "value" Obviously something index related, but is it the question is what? My table has around 2600 shapes in it, and pulling in the atrribute data using psql is fast, so I think it's indexing of the subselect rather than the relate that's the issue. TIA, Antti From dblasby@refractions.net Tue Feb 4 00:41:19 2003 From: dblasby@refractions.net (David Blasby) Date: Mon, 03 Feb 2003 16:41:19 -0800 Subject: [Mapserver-users] Optimising PostGIS relates/subselects/views References: <3E4215C93D3CE24D84A9FF385DF88D8714489C@afeb-ms-02> Message-ID: <3E3F0C2F.BD58C939@refractions.net> > DATA "the_geom FROM > (SELECT mylayer.oid AS oid, > mylayer.the_geom AS the_geom, > mytable.value AS value > FROM mylayer, mytable > WHERE mylayer.lut=mytable.lut) > AS mylayer > USING oid > USING srid=-1" > > CLASSITEM "value" Ensure you have an index on mylayer.lut and mytable.lut: CREATE INDEX mytable_lut_idx ON mytable (lut); CREATE INDEX mylayer_lut_idx ON mylayer (lut); You might want to change "...AS mylayer..." to "..AS foo..." so you're not equivocating "mylayer". If this doesnt speed things up, you'll have to use the new index-selectivity support in the CVS version of PostGIS. See the postgis mailing list for more details. dave From Antti.Roppola@brs.gov.au Tue Feb 4 00:41:42 2003 From: Antti.Roppola@brs.gov.au (Antti.Roppola@brs.gov.au) Date: Tue, 4 Feb 2003 11:41:42 +1100 Subject: [Mapserver-users] Optimising PostGIS relates/subselects/views Message-ID: <3E4215C93D3CE24D84A9FF385DF88D8714489E@afeb-ms-02> Thanks, the indexing reduced the map render time from 82 seconds to 9 seconds. Cheers, Antti -----Original Message----- From: David Blasby [mailto:dblasby@refractions.net] Sent: Tuesday, 4 February 2003 11:41 AM To: Antti.Roppola@brs.gov.au Cc: mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Optimising PostGIS relates/subselects/views > DATA "the_geom FROM > (SELECT mylayer.oid AS oid, > mylayer.the_geom AS the_geom, > mytable.value AS value > FROM mylayer, mytable > WHERE mylayer.lut=mytable.lut) > AS mylayer > USING oid > USING srid=-1" > > CLASSITEM "value" Ensure you have an index on mylayer.lut and mytable.lut: CREATE INDEX mytable_lut_idx ON mytable (lut); CREATE INDEX mylayer_lut_idx ON mylayer (lut); You might want to change "...AS mylayer..." to "..AS foo..." so you're not equivocating "mylayer". If this doesnt speed things up, you'll have to use the new index-selectivity support in the CVS version of PostGIS. See the postgis mailing list for more details. dave From ryanne.cruz@up.edu.ph Tue Feb 4 04:59:53 2003 From: ryanne.cruz@up.edu.ph (ryanne cruz) Date: Tue, 4 Feb 2003 12:59:53 +0800 Subject: [Mapserver-users] RE: problem with boundaries Message-ID: <1044334793.3e3f48c977379@mail.up.edu.ph> hi list. i have included in this email a sample of the map that we were able to display. as you can see, the data is not contained within the map. some are in the fringes. i used the distance function to get these data. an example is: select the_geom from table1 where distance(table1.the_geom,table2.the_geom)=0; this was the closest thing i could get, in terms of the map bounding the data. any ideas on how i could make it better? thanks! From ryanne.cruz@up.edu.ph Tue Feb 4 05:08:11 2003 From: ryanne.cruz@up.edu.ph (ryanne cruz) Date: Tue, 4 Feb 2003 13:08:11 +0800 Subject: [Mapserver-users] RE: problem with boundaries Message-ID: <1044335291.3e3f4abb836cb@mail.up.edu.ph> This message is in MIME format. ---MOQ1044335291cdca3f8a638c1be57172226440afb27b Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi list. i have included in this email a sample of the map that we were able to display. as you can see, the data is not contained within the map. some are in the fringes. i used the distance function to get these data. an example is: select the_geom from table1 where distance(table1.the_geom,table2.the_geom)=0; this was the closest thing i could get, in terms of the map bounding the data. any ideas on how i could make it better? thanks! ---MOQ1044335291cdca3f8a638c1be57172226440afb27b Content-Type: image/png; name="sample.png" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sample.png" iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeCAMAAAGN8re+AAAAS1BMVEX///9IPYtmAJkzAP8zM/8z Zv9mAP9mM/9mZv9mmf9mzP9m//+LAADcFDz/RQD6gHL/jADapSD/1wDw5oz/+s3StIwAAACpqakA AFnsz3JIAAAAAXRSTlMAQObYZgAAFTVJREFUeJztneu6q6oOQH2DtsJK3/9Nd71zCZBAENjT/Djf Pl3MdDiK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6oD+9 9zgV0kucwK2/1CMatysV0UufHFdt/Q6ol3XjoZnehm9cLdGb/67km2tva7kZesvelSyrLxWt5XL1 lt6MXPXWEt1BW+DFjW6PqKW3tUos7narH71V5R4h6be1xHBQ3AbkLvd1+1gj1lpiOAoq7qM3HQWt QmOxrc2RoqDJffSmI1vuo5cSWW5FGtzSmYjW5kiRVXFz9HqLRP6s3uQo99FLjQy5JY2D4AVba3Ok cN2Srs8Cegnu/rRe6rXvo5caGXKbR2tnjBhP7oh6B5I7nF62W/w56zuitS5u+HIJvc+jlxp+zX30 Cgazadiussh6yy7J/E+GC2bbe5fe1ab3wXjBHDjcqteMofWSBb/dyJPHETt0MC/aHr28YF4UP3p5 wZzSqbo5W2sXFYI72fvoZUXObHqt9eatXVQIT29QsKHz0UsNRG9A8KM3I1C9qGDPpuBzPz0uzRWJ gF5EcE29rS1Ui6BeT/CjNyMielOjCGMLc6ZNr9lubaFaRPXG/T560xHXGxX86E1HSq/wXU7lRWsB dSOtt8JjK4/eSoIfvZUE/x2lZlD1Fgt+9FYV/OgVF+y3tI9eQcGPXq7ejFURntNHb6nfP11ljcjQ SxH86N0iSy9B8Jpcef/71yJT7yW49QH0Hdl6D8GtD6Dv0Bog8z3xj15C7Oc4VTHsj77B0ziQ4uyM ooJhj0Af9kQoDFPBZiI2TmjNP05YmjfVntjWjANHfCT76OXHfxifeskJRBKZAAAAAElFTkSuQmCC ---MOQ1044335291cdca3f8a638c1be57172226440afb27b Content-Type: image/png; name="original.png" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="original.png" iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeCAMAAAGN8re+AAAAS1BMVEX///9IPYtmAJkzAP8zM/8z Zv9mAP9mM/9mZv9mmf9mzP9m//+LAADcFDz/RQD6gHL/jADapSD/1wDw5oz/+s3StIwAAACpqakA AFnsz3JIAAAAAXRSTlMAQObYZgAAEERJREFUeJztnWvC4ywIhbOJ0v3vdCaXpiYRBQTBvp4f32XG 0qen1B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UX5Uxz1fT0d5qrqs+G4W2GwRtm iiQ4tnp7c/ymIN1N7w0zuh4G3qpBTIPlgrPkw/2PpsHtgruN+UIm01+JOPWMpsNcMWsalWtGTz3E rtTnDTyUZEVSvamHkazI7/SXJmkJ5T/h7z81YA3e7GV8wQAAAABJRU5ErkJggg== ---MOQ1044335291cdca3f8a638c1be57172226440afb27b-- From christian.schuster@rsag.ch Tue Feb 4 05:03:05 2003 From: christian.schuster@rsag.ch (christian.schuster@rsag.ch) Date: Tue, 4 Feb 2003 06:03:05 +0100 Subject: [Mapserver-users] How to make labels in MS with PostGIS In-Reply-To: <3E3AA1BD.4040802@refractions.net> Message-ID: Hi Paul, Sorry that I am coming back to you after few days. I am still not able to make labels. I am a newbie and I think it is a generall understanding problem of how the map file works. Below you see my layer definitions for the labels. There I have a big question about it. So I have a table called 'geo3'. In this table I have a column as identifier which is called 'ID'. Then the second column is of type varcahr(20 and called 'NAME'. The last one is the geometry column. Now I can draw the map and all. Just the labels are not working. I am not sure what the tag 'DATA' has to look like. The way it is now, I just get back the geometry column. But what I would like is to have the column 'NAME' to use for labeling. If I change the tag 'DATA' to "NAME from geo3" then I would have this. But I do not know how MapServer knows where to draw the labels. If I change the tag 'DATA' to "* from geo" then I get an error. So I am quite confused. I also tried so many times already. if someone could solve my confusion would be really nice. LAYER NAME "labels" ### Connect to a remote spatial database CONNECTIONTYPE postgis CONNECTION "user=*** dbname=myGISdb host=127.0.0.1 port=5432" ### Get the labels from the table DATA "geom from geo3" STATUS ON TYPE ANNOTATION LABELITEM "name" CLASS EXPRESSION 'name' COLOR -1 -1 -1 LABEL COLOR 0 0 0 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END # end of label END END Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Paul Ramsey To christian.schuster@rsag.ch 31.01.2003 17:18 cc mapserver-users@lists.gis.umn.edu Subject Re: [Mapserver-users] How to make labels in MS with PostGIS Same as with any other data source. Declare a labelitem and add a label object to your class object. Should be examples in the map file reference page. The only potential gotcha is that your labelitem attribute should be given in lower case. christian.schuster@rsag.ch wrote: > > Hi list, > > I have a table 'geo' with a geometry column, a column 'name' as > varchar(20) and an ID column as the Primary Key. Is it possible to use > the text in the column 'name' as the label text and if so what does the > layer look like in the map file. > > Thanaks for helping > > Christian Schuster > > Rudolf Schuster AG > Postfach 277 > CH - 3000 Bern 11 > > http://www.rsag.ch > ++41 31 348 05 30 -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From pram@pramcentral.com Tue Feb 4 05:08:47 2003 From: pram@pramcentral.com (Prashanth Ram) Date: Tue, 04 Feb 2003 00:08:47 -0500 Subject: [Mapserver-users] JpGraph + Mapserver 3.6.3 + php_mapscript References: <3E3AAD12.B61C64C5@pramcentral.com> <1044226774.9802.11.camel@hercules.bundabergcity.qld.gov.au> Message-ID: <3E3F4ADE.4A6E54DF@pramcentral.com> Hi folks, I just wanted to thank everyone that answered my question. It turned out, as some of you pointed out that a "class Legend" exists in JpGraph and Mapserver.. so I had to change the class in JpGraph.. code was easier to modify :) Thanks again to all.. -Prashanth > > > On Sat, 2003-02-01 at 03:06, Prashanth Ram wrote: > > Hi folks.. > > Has anyone tried to get JpGraph (1.x) and Mapserver + php_mapscript > > (3.6.3) working together on the same box. When I turn the php_mapscript > > extension on, JpGraph does not work, and when I turn it off > > php_mapscript does not work! > > > > Does anyone have any solutions for this problem? > > > > Thanks.. > > -Prashanth > > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From christian.schuster@rsag.ch Tue Feb 4 05:29:52 2003 From: christian.schuster@rsag.ch (christian.schuster@rsag.ch) Date: Tue, 4 Feb 2003 06:29:52 +0100 Subject: [Mapserver-users] Image not created Message-ID: Hi List, I am creating a map image, a legend image, a reference image and a scaebar. Now, the problem is that mostly one image is not created by mapserver. But in the browser I can see that he wants to download this picture. It is either the legend, scalebar or the reference picture which is not created. I was waiting several minutes without success. I am using PostGIS as input for MapServer. Does anyone know where the problem is. System: Win 2000 CygWin PostgreSQL-7.3.1-1 PostGIS-CVS (After 0.7.3) MapServer-3.6.3 Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 From t_lalla20@yahoo.com Tue Feb 4 09:44:06 2003 From: t_lalla20@yahoo.com (Terrence Lalla) Date: Tue, 4 Feb 2003 01:44:06 -0800 (PST) Subject: [Mapserver-users] georeferencing points and representing calculated distances Message-ID: <20030204094406.20563.qmail@web14102.mail.yahoo.com> --0-1831161022-1044351846=:19351 Content-Type: text/plain; charset=us-ascii Hello All, Is there a method to convert a pixel coordinate to a georeference coordinate and a georeference coordinate to a pixel coordinate ? If I have a point on a map and want to represent a circle with radius r (a distance in meters) using the point as the center. How do i do that in PHPMapscript? The radius I will calculate. Thanks Terrence. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --0-1831161022-1044351846=:19351 Content-Type: text/html; charset=us-ascii

Hello All,

 Is there a method to convert a pixel coordinate to a georeference coordinate and a georeference coordinate to a pixel coordinate ?

If I have a point on a map and want to represent a circle with radius r (a distance in meters) using the point as the center. How do i do that in PHPMapscript? The radius I will calculate.

Thanks

Terrence.



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now --0-1831161022-1044351846=:19351-- From LVN@hvm.dk Tue Feb 4 12:56:24 2003 From: LVN@hvm.dk (Lars V. Nielsen) Date: Tue, 4 Feb 2003 13:56:24 +0100 Subject: [Mapserver-users] Release date for 3.7 ? Message-ID: <021d01c2cc4c$d3295f80$1101a8c0@odin> This is a multi-part message in MIME format. ------=_NextPart_000_021A_01C2CC55.348F05B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Does anyone have an idea approximately when version 3.7 will be ready = for release ? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk ------=_NextPart_000_021A_01C2CC55.348F05B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
Does anyone have an idea approximately = when version=20 3.7 will be ready for release ?
 
Best regards / Med venlig = hilsen
Lars V.=20 Nielsen
--------------------------------------------------------
Hv= enegaard=20 & Meklenborg
Rugaardsvej 55, DK-5000 Odense C
Denmark
http://www.hvm.dk
------=_NextPart_000_021A_01C2CC55.348F05B0-- From RUBINJ@gov.ns.ca Tue Feb 4 13:16:00 2003 From: RUBINJ@gov.ns.ca (John Rubin) Date: Tue, 04 Feb 2003 09:16:00 -0400 Subject: [Mapserver-users] Run a C program from an HTML page ? Message-ID: Thank you for your replies. I did not mean to be to abstract in my question, so here is the situation. I have 2000 map tiles I wish to query, view and zoom into individually. Each grid has 500 or so polygons that I also query, view and zoom into. I currently ask the user for the grid number from a text box. I do an itemquery for the grid number and extract the shpext and the grid's name from a layer. I zoomin into the grid and activate the grid layer using mapserver. The user may then input a polygon number for the selected grid. I do an itemquery for the polygon number and extract the shpext from the grid layer. I zoomin into the polygon and activate the grid layer using mapserver. All of this is accomplished using javascript, mapserver and mapimage. What I was hoping to do is use one template file for the query and change the name and data information to reflect the users grid selection. I would also like to use one grid layer in the main map file and change the name and data information based on the users selection. I hope the is a little clearer. Thanks John Rubin Telephone: 902-893-5712 E-mail: RUBINJ@gov.ns.ca From dlowther@ou.edu Tue Feb 4 14:33:10 2003 From: dlowther@ou.edu (Lowther, David W) Date: Tue, 4 Feb 2003 08:33:10 -0600 Subject: [Mapserver-users] How to make labels in MS with PostGIS Message-ID: Christian, You've got to get everything you need (geometry and attributes) into that data statement. I am using something that looks like this: DATA "the_geom from (select oid,* from table) as foo" HTH, Dave > -----Original Message----- > From: christian.schuster@rsag.ch [mailto:christian.schuster@rsag.ch] > Sent: Monday, February 03, 2003 11:03 PM > To: Paul Ramsey > Cc: mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] How to make labels in MS with PostGIS > > > > > > > Hi Paul, > > Sorry that I am coming back to you after few days. I am still > not able to make labels. I am a newbie and I think it is a > generall understanding problem of how the map file works. > Below you see my layer definitions for the labels. There I > have a big question about it. So I have a table called > 'geo3'. In this table I have a column as identifier which is > called 'ID'. Then the second column is of type varcahr(20 and > called 'NAME'. The last one is the geometry column. Now I can > draw the map and all. Just the labels are not working. I am > not sure what the tag 'DATA' has to look like. The way it is > now, I just get back the geometry column. But what I would > like is to have the column 'NAME' to use for labeling. If I > change the tag 'DATA' to "NAME from geo3" then I would have > this. But I do not know how MapServer knows where to draw the > labels. If I change the tag 'DATA' to "* from geo" then I get > an error. So I am quite confused. I also tried so many times > already. if someone could solve my confusion would be really nice. > > LAYER > NAME "labels" > > ### Connect to a remote spatial database > CONNECTIONTYPE postgis > CONNECTION "user=*** dbname=myGISdb host=127.0.0.1 port=5432" > > ### Get the labels from the table > DATA "geom from geo3" > STATUS ON > TYPE ANNOTATION > > LABELITEM "name" > > CLASS > EXPRESSION 'name' > COLOR -1 -1 -1 > LABEL > COLOR 0 0 0 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END # end of label > END > END > > Christian Schuster > > Rudolf Schuster AG > Postfach 277 > CH - 3000 Bern 11 > > http://www.rsag.ch > ++41 31 348 05 30 > > > > > Paul Ramsey > > > ons.net> > To > > christian.schuster@rsag.ch > 31.01.2003 17:18 > cc > > mapserver-users@lists.gis.umn.edu > > Subject > Re: [Mapserver-users] > How to make > labels in MS with > PostGIS > > > > > > > > > > > > > > > > > Same as with any other data source. Declare a labelitem and > add a label object to your class object. Should be examples > in the map file reference page. The only potential gotcha is > that your labelitem attribute should be given in lower case. > > christian.schuster@rsag.ch wrote: > > > > Hi list, > > > > I have a table 'geo' with a geometry column, a column 'name' as > > varchar(20) and an ID column as the Primary Key. Is it > possible to use > > the text in the column 'name' as the label text and if so what does > > the layer look like in the map file. > > > > Thanaks for helping > > > > Christian Schuster > > > > Rudolf Schuster AG > > Postfach 277 > > CH - 3000 Bern 11 > > > > http://www.rsag.ch > > ++41 31 348 05 30 > > -- > __ > / > | 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/maps> erver-users > From Kevin.Slover@noaa.gov Tue Feb 4 15:40:22 2003 From: Kevin.Slover@noaa.gov (Kevin Slover) Date: Tue, 04 Feb 2003 10:40:22 -0500 Subject: [Mapserver-users] Compilation Question Message-ID: <3E3FDEE6.F29CA422@noaa.gov> Good day all, First time poster... and first time user... so far I am liking what I have seen in the documentation, and have heard great reviews about this software. I have several questions regarding the configuration. I am attempting to configure with gdal support, but with no luck. I run the configure script with --with-gdal=/usr/local/gdal-1.1.7.2/configure, and it succesfully creates the makefile. However, the makefile crashes, giving me ~50 undefined references when it attempts to compile shp2img, all relating to a "undefined reference to 'GDALXXXXXXXXXXX". Any thoughts? If you are using tiff/jpeg support, does GDAL need to be configured with these supports as well?? And maybe, as well, does mapserver support the latest GDAL release? One last question... thought I would try without GDAL support, and had the make run through successfully. However, in make install, it was attempting to copy map.h from an old install of Mapserver (a previous, extremely unsuccessful attempt). It is in the Makefile script at: cp -f map.h , attempting to install libmap.a. Should I download a copy of Mapserver 3.5, configure, and then make clean to solve this problem?? Thanks in advance for any advice, help. I will continue to work through to see what will happen... -- LTJG Kevin Slover, NOAA GIS Specialist/Oceanographer NOAA/TPC/TSB/Storm Surge Unit 11691 SW 17th Street Miami FL 33165 W (305) 229-4456 From warmerdam@pobox.com Tue Feb 4 16:16:52 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Tue, 04 Feb 2003 11:16:52 -0500 Subject: [Mapserver-users] Compilation Question In-Reply-To: <3E3FDEE6.F29CA422@noaa.gov> References: <3E3FDEE6.F29CA422@noaa.gov> Message-ID: <3E3FE774.6000602@pobox.com> Kevin Slover wrote: > Good day all, > First time poster... and first time user... so far I am liking what I > have seen in the documentation, and have heard great reviews about this > software. > > I have several questions regarding the configuration. I am attempting > to configure with gdal support, but with no luck. I run the configure > script with --with-gdal=/usr/local/gdal-1.1.7.2/configure, and it > succesfully creates the makefile. However, the makefile crashes, giving > me ~50 undefined references when it attempts to compile shp2img, all > relating to a "undefined reference to 'GDALXXXXXXXXXXX". Any thoughts? > If you are using tiff/jpeg support, does GDAL need to be configured with > these supports as well?? And maybe, as well, does mapserver support the > latest GDAL release? Kevin, A few notes: o I would encourage you to upgrade t