[Mapserver-users] Re: unsubscribe me from the mailing list

vijay raj vjjjay at yahoo.com
Sun Jul 27 14:38:07 EDT 2003


--0-1697190749-1059331087=:25054
Content-Type: text/plain; charset=us-ascii



mapserver-users-request at lists.gis.umn.edu wrote:Send Mapserver-users mailing list submissions to
mapserver-users at lists.gis.umn.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-request at lists.gis.umn.edu

You can reach the person managing the list at
mapserver-users-admin at lists.gis.umn.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mapserver-users digest..."


Today's Topics:

1. mapserver 4.0b - threads error (Aaron Kreider)
2. Trouble loading php_mapscript.so (Lin Jianfong)
3. AW: [Mapserver-users] Setting the scale of the map (Robert Fritz)
4. status on or default? (=?gb2312?q?Chen=20Fu?=)

--__--__--

Message: 1
From: "Aaron Kreider" 
To: mapserver-users at lists.gis.umn.edu
Date: Sat, 26 Jul 2003 17:58:33 -0500
Subject: [Mapserver-users] mapserver 4.0b - threads error

I compiled Mapserver 4.0b version 2 on my home pc. For options I 
used: with-threads and with-php.

When I uploaded it to my webserver and tried to run a test 
mapscript page it gave me a thread-safety error message. If 
thread-safety is implemented in 4.0b, shouldn't it be able to run on 
Apache without running PHP as CGI???

Fatal error: Due to thread-safety problems, php_mapscript cannot 
be used as a 'apache' 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 
/home/campusac/public_html/map/example1.php on line 11

I'm loading mapscript.so using the dl() function.

-Aaron-

--__--__--

Message: 2
From: "Lin Jianfong" 
To: mapserver-users at lists.gis.umn.edu
Date: Sun, 27 Jul 2003 03:53:06 -0700
Subject: [Mapserver-users] Trouble loading php_mapscript.so

Hi,

When I tried to load up php_mapscript.so as PHP extension, I got this error 
message :

Warning: dl() [function.dl]: Unable to load dynamic library 
'/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' - 
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so: 
Undefined symbol "FT_New_Face" in /usr/home/ljfong/public_html/info.phtml on 
line 6

I'm using mapserver 3.6.6 with phpmapscript in it. However, if I compile 
mapserver+phpmapscript without --with-freetype option to configure script, I 
don't get the above error message rather I get error message from mapserver 
saying libgd wasn't compiled with truetype font support. End result, none of 
my application works.

The libgd I'm using right now is 1.8.4. Tried 2.0.15 before, but mapserver 
refused to load even png altogether.

I think I'm confused about a lot of things here, with mapserver 3.6.6 :
- What version of libgd is the most compatible ?
- What version of libfreetype is the most compatible ?

Here's the option I passed in when compiling mapserv :

./configure --with-gd=static,/usr/local --without-tiff 
--with-jpeg=/usr/local --with-png=/usr/local --with-proj=/usr/local 
--with-gdal --with-wms --with-php=../php-4.3.0 --with-wmsclient 
--enable-runpath --with-postgis --with-freetype

on FreeBSD 4.8 system.

Any suggestion/idea would be greatly appreciated.

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--__--__--

Message: 3
From: "Robert Fritz" 
To: 
Subject: AW: [Mapserver-users] Setting the scale of the map
Date: Sun, 27 Jul 2003 13:28:08 +0200

Dear Zoltan,

if you want to set the scale you have to calculate the new mapextent and
send the values to the mapserver. I tried it and it seems to work, if you
use a quadratic map.
It does not work correctly, if the map is not quadratic, obviously a error
in the my algorithm.
Maybe you can use the approach:

javascript:

--------------------------------------------------Schnipp
function scale()
{
/*
Formel:
md = (width-1)/(MS_PPI*inchesPerUnits[units]);
gd = extent.maxx-extent-minx;

scale = gd/md;

width = Map-Width in Pixel;
MS_PPI = 72
IpU = 39.3701 fur Meter

--> for more information on this take a look
at the mapserver-mailing list archive.
*/



// Wie gro? ist das Bild in Pixel?
// map-size in pixel, if you use a constant map size you
// take these values, otherwise:

imgObject= parent.map.window.document.getElementById("mapimg");
map_Width=imgObject.width;
map_Height=imgObject.height;

// Wie gro? ist der Ausschnitt in GK Einheiten?
// map-size in coordinate-units:
// (the value is returned by the mapserver)

map_extent = parent.map.window.document.mapform.imgext.value;
//alert(map_Width+" "+map_Height+" "+map_extent);
map_extent_Array = map_extent.split(" ");
L = parseInt(map_extent_Array[0]);
D = parseInt(map_extent_Array[1]);
R = parseInt(map_extent_Array[2]);
T = parseInt(map_extent_Array[3]);
//alert("GD extentmaxx-minx" + (R-L));

// Bildmittelpunkt in Koordinaten
// calculate the center-cordinates of the map
C_X = (R-L)/2;
C_Y = (D-T)/2;
Center_X = (L+C_X);
Center_Y = (T+C_Y);
//alert(Center_X+" "+Center_Y);

// Den Wert berechnen, calculate the new value:
// window.document.form_scale.scale_value.value = the User's Input

theValue = (map_Width) / (72 * 39.3701) *
window.document.form_scale.scale_value.value;
//alert(theValue);
// Den Wert dem Mittelpunkt zurechnen um neuen Extent zu erhalten
// calculate the new Extent
nL = Center_X - (theValue/2);
nR = Center_X + (theValue/2);

nD = Center_Y - (theValue/2);
nT = Center_Y + (theValue/2);

//alert(nL+" "+nD+" "+nR+" "+nT);

// set the new Extent :
parent.map.window.document.mapform.mapext.value = nL+" "+nD+" "+nR+" "+nT;
setTool("Pan");
.......
parent.map.window.document.mapform.submit();

}
--------------------------------------------------Schnapp

Robert

-----Ursprungliche Nachricht-----
Von: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]Im Auftrag von Siki
Zoltan
Gesendet: Samstag, 26. Juli 2003 15:52
An: mapserver-users at lists.gis.umn.edu
Betreff: [Mapserver-users] Setting the scale of the map


Hi!
I try to create a html template where the user can set the scale of the
map. I added a textbox to the template
 [input] 
but i failed to set extension of the generated map.

Does the mapserver use scale cgi variable as input/output or output only?
What other cgi variables can i use to set a given scale? mapext? imgext?
Any idea to work around?

Thanx
--
Zoltan Siki

Tel:+36 1 463 1146 +36 70 3199092 Fax:+36 1 463 3209
Mail: siki at agt.bme.hu
----------------------------------------------------------------------------
---
Assistant professor at egyetemi adjunktus
Department of Geodesy and Surveying Altalanos es Felsogeodezia
tanszek
Budapest University of Technology Hungary Budapesti Muszaki Gazd. Tud.
Egyetem
----------------------------------------------------------------------------
---





--__--__--

Message: 4
Date: Sun, 27 Jul 2003 21:44:36 +0800 (CST)
From: =?gb2312?q?Chen=20Fu?= 
To: Mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] status on or default?

Hi!
I play with raster on mapserver these days. But I must
set status default to make the raster layer shown,
while set status on the raster layer disappear.
Why?


=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science

_________________________________________________________
Do You Yahoo!? 
ÊîÆÚ´óƬÆë¾ÛÑÅ»¢Í¨ ÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨µ÷ƵÊÕÒô»úµÈÄãÀ´ÄÃ
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.promo.yahoo.com/minisite/messenger1/


--__--__--

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


End of Mapserver-users Digest


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
--0-1697190749-1059331087=:25054
Content-Type: text/html; charset=us-ascii

<DIV><BR><BR><B><I>mapserver-users-request at lists.gis.umn.edu</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid; WIDTH: 100%">Send Mapserver-users mailing list submissions to<BR>mapserver-users at lists.gis.umn.edu<BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users<BR>or, via email, send a message with subject or body 'help' to<BR>mapserver-users-request at lists.gis.umn.edu<BR><BR>You can reach the person managing the list at<BR>mapserver-users-admin at lists.gis.umn.edu<BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of Mapserver-users digest..."<BR><BR><BR>Today's Topics:<BR><BR>1. mapserver 4.0b - threads error (Aaron Kreider)<BR>2. Trouble loading php_mapscript.so (Lin Jianfong)<BR>3. AW: [Mapserver-users] Setting the scale of the map (Robert Fritz)<BR>4. status on or default? (=?gb2312?q?Chen=20Fu?=)<BR><BR>--__--__--<BR><BR>Message: 1<BR>From: "Aaron Kreider" <AKREIDER at ND.EDU><BR>To:
 mapserver-users at lists.gis.umn.edu<BR>Date: Sat, 26 Jul 2003 17:58:33 -0500<BR>Subject: [Mapserver-users] mapserver 4.0b - threads error<BR><BR>I compiled Mapserver 4.0b version 2 on my home pc. For options I <BR>used: with-threads and with-php.<BR><BR>When I uploaded it to my webserver and tried to run a test <BR>mapscript page it gave me a thread-safety error message. If <BR>thread-safety is implemented in 4.0b, shouldn't it be able to run on <BR>Apache without running PHP as CGI???<BR><BR>Fatal error: Due to thread-safety problems, php_mapscript cannot <BR>be used as a 'apache' module. You will have to reconfigure your <BR>PHP as a CGI to run this version of MapScript. See <BR>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in <BR>/home/campusac/public_html/map/example1.php on line 11<BR><BR>I'm loading mapscript.so using the dl() function.<BR><BR>-Aaron-<BR><BR>--__--__--<BR><BR>Message: 2<BR>From: "Lin Jianfong" <LJFONG at HOTMAIL.COM><BR>To:
 mapserver-users at lists.gis.umn.edu<BR>Date: Sun, 27 Jul 2003 03:53:06 -0700<BR>Subject: [Mapserver-users] Trouble loading php_mapscript.so<BR><BR>Hi,<BR><BR>When I tried to load up php_mapscript.so as PHP extension, I got this error <BR>message :<BR><BR>Warning: dl() [function.dl]: Unable to load dynamic library <BR>'/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' - <BR>/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so: <BR>Undefined symbol "FT_New_Face" in /usr/home/ljfong/public_html/info.phtml on <BR>line 6<BR><BR>I'm using mapserver 3.6.6 with phpmapscript in it. However, if I compile <BR>mapserver+phpmapscript without --with-freetype option to configure script, I <BR>don't get the above error message rather I get error message from mapserver <BR>saying libgd wasn't compiled with truetype font support. End result, none of <BR>my application works.<BR><BR>The libgd I'm using right now is 1.8.4. Tried 2.0.15 before, but mapserver
 <BR>refused to load even png altogether.<BR><BR>I think I'm confused about a lot of things here, with mapserver 3.6.6 :<BR>- What version of libgd is the most compatible ?<BR>- What version of libfreetype is the most compatible ?<BR><BR>Here's the option I passed in when compiling mapserv :<BR><BR>./configure --with-gd=static,/usr/local --without-tiff <BR>--with-jpeg=/usr/local --with-png=/usr/local --with-proj=/usr/local <BR>--with-gdal --with-wms --with-php=../php-4.3.0 --with-wmsclient <BR>--enable-runpath --with-postgis --with-freetype<BR><BR>on FreeBSD 4.8 system.<BR><BR>Any suggestion/idea would be greatly appreciated.<BR><BR>_________________________________________________________________<BR>Add photos to your e-mail with MSN 8. Get 2 months FREE*. <BR>http://join.msn.com/?page=features/featuredemail<BR><BR><BR>--__--__--<BR><BR>Message: 3<BR>From: "Robert Fritz" <ROBERT-FRITZ at WEB.DE><BR>To: <MAPSERVER-USERS at LISTS.GIS.UMN.EDU><BR>Subject: AW: [Mapserver-users] Setting the
 scale of the map<BR>Date: Sun, 27 Jul 2003 13:28:08 +0200<BR><BR>Dear Zoltan,<BR><BR>if you want to set the scale you have to calculate the new mapextent and<BR>send the values to the mapserver. I tried it and it seems to work, if you<BR>use a quadratic map.<BR>It does not work correctly, if the map is not quadratic, obviously a error<BR>in the my algorithm.<BR>Maybe you can use the approach:<BR><BR>javascript:<BR><BR>--------------------------------------------------Schnipp<BR>function scale()<BR>{<BR>/*<BR>Formel:<BR>md = (width-1)/(MS_PPI*inchesPerUnits[units]);<BR>gd = extent.maxx-extent-minx;<BR><BR>scale = gd/md;<BR><BR>width = Map-Width in Pixel;<BR>MS_PPI = 72<BR>IpU = 39.3701 fur Meter<BR><BR>--&gt; for more information on this take a look<BR>at the mapserver-mailing list archive.<BR>*/<BR><BR><BR><BR>// Wie gro? ist das Bild in Pixel?<BR>// map-size in pixel, if you use a constant map size you<BR>// take these values, otherwise:<BR><BR>imgObject=
 parent.map.window.document.getElementById("mapimg");<BR>map_Width=imgObject.width;<BR>map_Height=imgObject.height;<BR><BR>// Wie gro? ist der Ausschnitt in GK Einheiten?<BR>// map-size in coordinate-units:<BR>// (the value is returned by the mapserver)<BR><BR>map_extent = parent.map.window.document.mapform.imgext.value;<BR>//alert(map_Width+" "+map_Height+" "+map_extent);<BR>map_extent_Array = map_extent.split(" ");<BR>L = parseInt(map_extent_Array[0]);<BR>D = parseInt(map_extent_Array[1]);<BR>R = parseInt(map_extent_Array[2]);<BR>T = parseInt(map_extent_Array[3]);<BR>//alert("GD extentmaxx-minx" + (R-L));<BR><BR>// Bildmittelpunkt in Koordinaten<BR>// calculate the center-cordinates of the map<BR>C_X = (R-L)/2;<BR>C_Y = (D-T)/2;<BR>Center_X = (L+C_X);<BR>Center_Y = (T+C_Y);<BR>//alert(Center_X+" "+Center_Y);<BR><BR>// Den Wert berechnen, calculate the new value:<BR>// window.document.form_scale.scale_value.value = the User's Input<BR><BR>theValue = (map_Width) / (72 * 39.3701)
 *<BR>window.document.form_scale.scale_value.value;<BR>//alert(theValue);<BR>// Den Wert dem Mittelpunkt zurechnen um neuen Extent zu erhalten<BR>// calculate the new Extent<BR>nL = Center_X - (theValue/2);<BR>nR = Center_X + (theValue/2);<BR><BR>nD = Center_Y - (theValue/2);<BR>nT = Center_Y + (theValue/2);<BR><BR>//alert(nL+" "+nD+" "+nR+" "+nT);<BR><BR>// set the new Extent :<BR>parent.map.window.document.mapform.mapext.value = nL+" "+nD+" "+nR+" "+nT;<BR>setTool("Pan");<BR>.......<BR>parent.map.window.document.mapform.submit();<BR><BR>}<BR>--------------------------------------------------Schnapp<BR><BR>Robert<BR><BR>-----Ursprungliche Nachricht-----<BR>Von: mapserver-users-admin at lists.gis.umn.edu<BR>[mailto:mapserver-users-admin at lists.gis.umn.edu]Im Auftrag von Siki<BR>Zoltan<BR>Gesendet: Samstag, 26. Juli 2003 15:52<BR>An: mapserver-users at lists.gis.umn.edu<BR>Betreff: [Mapserver-users] Setting the scale of the map<BR><BR><BR>Hi!<BR>I try to create a html template where the user
 can set the scale of the<BR>map. I added a textbox to the template<BR><INPUT value=[scale] name=scale><BR>but i failed to set extension of the generated map.<BR><BR>Does the mapserver use scale cgi variable as input/output or output only?<BR>What other cgi variables can i use to set a given scale? mapext? imgext?<BR>Any idea to work around?<BR><BR>Thanx<BR>--<BR>Zoltan Siki<BR><BR>Tel:+36 1 463 1146 +36 70 3199092 Fax:+36 1 463 3209<BR>Mail: siki at agt.bme.hu<BR>----------------------------------------------------------------------------<BR>---<BR>Assistant professor at egyetemi adjunktus<BR>Department of Geodesy and Surveying Altalanos es Felsogeodezia<BR>tanszek<BR>Budapest University of Technology Hungary Budapesti Muszaki Gazd. Tud.<BR>Egyetem<BR>----------------------------------------------------------------------------<BR>---<BR><BR><BR><BR><BR><BR>--__--__--<BR><BR>Message: 4<BR>Date: Sun, 27 Jul 2003 21:44:36 +0800 (CST)<BR>From: =?gb2312?q?Chen=20Fu?=
 <NOVALET at YAHOO.COM.CN><BR>To: Mapserver-users at lists.gis.umn.edu<BR>Subject: [Mapserver-users] status on or default?<BR><BR>Hi!<BR>I play with raster on mapserver these days. But I must<BR>set status default to make the raster layer shown,<BR>while set status on the raster layer disappear.<BR>Why?<BR><BR><BR>=====<BR>Remote Scensing Satellite Ground Station<BR>Chinese Academy of Science<BR><BR>_________________________________________________________<BR>Do You Yahoo!? <BR>ÊîÆÚ´óƬÆë¾ÛÑÅ»¢Í¨ ÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨µ÷ƵÊÕÒô»úµÈÄãÀ´ÄÃ<BR>http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.promo.yahoo.com/minisite/messenger1/<BR><BR><BR>--__--__--<BR><BR>_______________________________________________<BR>Mapserver-users mailing list<BR>Mapserver-users at lists.gis.umn.edu<BR>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users<BR><BR><BR>End of Mapserver-users Digest</BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software
--0-1697190749-1059331087=:25054--



More information about the mapserver-users mailing list