Re: [mapserver-users] Regarding Apache
*PHP/MapScript and PHP has a habit of causing Apache to effectively freeze* But how to solve that one... On Fri, Feb 6, 2009 at 1:33 PM, Gregor at HostGIS gre...@hostgis.comwrote: Apache is crashing? Ouch. Question: Are you using PHP/MapScript and PHP as a DSO instead of a CGI? That has a habit of causing Apache to effectively freeze but not crash. -- Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development hosting services, http://www.HostGIS.com/ Remember that no one cares if you can back up, only if you can restore. - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Regarding Apache
Hi Thanks for helping always. Again I need help. Actually the problem is that after some time my apache is going down. i.e my image is not coming. But if I restart my apache then it is coming. I think in http.conf file I have to change some config. I am not getting.Plz help me regarding this. Thanks and regards Amiya Patra ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz urgent regarding relative path
Hi all Can anyone tell me please the path of image (gif or png file) in symbol file is relative to what? (2) imagepath of WEB is relative to what?(in map file) (3) image of REFERENCE is relative to what?() Thank you in advance Amiya ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz help
hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon thank u ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz help
hi Extremely sorryNow I got . sorry for shouting without trying .Actually I got deadline. in my project...thats why.. Anyway thank u all 4 response Amiya ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz response immediate (deadline)
hi But I am not getting how to addtwo points via shapeobj as I already placed points in my map file. my function is like this function AddPoints ( $map, $qresult ) { $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newPointObj(); $ln[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); $poi[$i]-setXY($row[1],$row[2]); $ln[$i]-add($poi[$i]); $shp[$i]-add($ln[$i]); $shp[$i]-set(index, $row[0]); $this_layer-addFeature( $shp[$i] ); $i++; } } // end AddPoints plz response ... thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz response immediate (deadline)
Hi I mean to say how I will connect two points. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] regarding drawing lines between 2 points
Hi plz any one tell me how I will draw lines betweens 2 points by shapeobject (php mapscript) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz help
hi can anyone help me by telling that how to draw line between two points via php-mapscript using shapeobject I mean to say what methods I will use. Plz help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] integration php with tomcat
hi I am unable to integrate php with tomcat as I cant find php servlet jar file(in linux as well as windows).It is not in my system.where I will get that file plz help me... Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Unable to open file for writing in windows(plz immediate response)
But in windows how I will check wheather apache user can write to that folder. Actually in linux my application is running ok. but in windows vista, I cant find the daemon apache user as in httpd.conf file daemon is mentioned as usr and group. But how I will give permission to this user for writing to that folder. Please help immediate.. On Wed, Jan 7, 2009 at 7:11 PM, Dan Little danlit...@yahoo.com wrote: Make sure your apache user can write to that directory, also make sure they can cd into that directory. -Duck -- *From:* MOHAMMED SADIQUE SHADAB sadiquesha...@gmail.com *To:* mapserver-users@lists.osgeo.org *Sent:* Wednesday, January 7, 2009 5:13:28 AM *Subject:* [mapserver-users] Unable to open file /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing hi unable to generate image that is (.png) in FGS after giving the URL as URL:http://localhost:9000/cgi-bin/mapserv please help me immediately thanks regards SHADAB ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)
Hi I got the error but unable to solve.The apache user don have permision to write to that folder .In windows how I will check wheather apache user can write to that folder. Actually in linux my application is running ok. but in windows vista, I cant find the daemon apache user as in httpd.conf file daemon is mentioned as usr and group. But how I will give permission to this user for writing to that folder. Please help immediate.. Thanks..and hope positive immidiate response ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)
hi Thanks 4 reply.but already I have tried that but no result. Actually I want to know how to change the ownership of that folder...I have to change the ownership to apache user and then needs to give permission.. On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain mhd.muzaf...@gmail.comwrote: hi right click on the folder,then select the property and change the read and write option to its folder and to its sub folder. regards muzaffar On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra amiyapatra...@gmail.comwrote: Hi I got the error but unable to solve.The apache user don have permision to write to that folder .In windows how I will check wheather apache user can write to that folder. Actually in linux my application is running ok. but in windows vista, I cant find the daemon apache user as in httpd.conf file daemon is mentioned as usr and group. But how I will give permission to this user for writing to that folder. Please help immediate.. Thanks..and hope positive immidiate response ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] regarding scalebar
Hi. Please anyone give answer of my question.According to me It should be 7.886242254 as my scale bar size is (144X5).plz response ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] regarding scalebar
Hi I have one input with extent -97.384655 49.697475 -96.82 50.077168 .Now my scalebar initially shows me upto 6 miles(0...3...6) why?? It should to show more than 6 as 1 degree =69.04 miles. MAP IMAGETYPE png24 #NAME mapa SIZE 640 480 STATUS ON UNITS dd IMAGECOLOR 255 255 255 EXTENT -97.384655 49.697475 -96.82 50.077168 # 0.0 0.0 475.0 486.0 #583.0 421.0 SHAPEPATH /home/nms/MapServerData/data Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 2 STATUS embed SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 255 0 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] regarding scalebar
Hi Why anyone is nt explaining my simple question.??...My scalebar doubt.And one more thing I need to restart apachhe after a period to continue run my programwhy???Plz reply ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] regarding scalebar
Hi steve... Thanks 4 reply. My calculation was exactly same as yours.. But steve my scalebar size is 144X5. ( not 110).And I do need to restart apache server after some time to continue to run my program. why is it so ??? Thanks Regards Amiya Patra ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] simple question regarding output image
Hi I have one tiff image as input. Now I am creating one output image(same). imagetype is gif or jpeg or png. Now the size of o/p image is too big compare to input image..and its takin time to load to browser .plz explain me Why too big?? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] simple question regarding output image
oh my god..sorry mistakenly I put the size so big..my entire day was lost.oh godanyway thanks.friend One more thing plz tell me .in my input image the extent is the form of pixel(like 0,0,234,345) .Can I put the lat long instead of pixel as I know what will be extent (lat long of 4 corner) Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] getting raster data
hi Please tell me from where I can capture the images with latitude and longitude extent(free). Please response... Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Integration and extent ..............
Hi,, How I will get raster data with lat long extent (free)? I have one map appilication which I wrote in php mapscript.And I have also one jsp application. Now I want to integratefirst one with tomcat(2nd one). Actually what I done I simple created a hyperlink from my jsp page to map application. If I run tomcat and used that link it works fine.jsp application as well as mapscript application. Mapserver is cgi based.and tomcat(using diff port) Please anybody can explain why it is working fine Please tell me how I will get the lat long extent from pixel extent(like 0,0,234,345) .I think it is not possible at allBut I want to be sure.. Plz reply me soonI am very new mapserver userplz help me .. Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] getting extent and integration from amiya
Hi José María Michia I cant understand whats wrong with my msgwhy u did nt understand my query...Actually what I am trying to say thatI wrote one jsp application.as well as mapserver application in which I used phpmapscript..Both are different modules. Now I want to integrate both of these. What I have done is that I created one link (with anchor tag) from jsp page to mapserver page.( Both are using different port. )It works fine. my question is that why it is running.. I thought that mapserver executable file is CGI based ..and to do integration with tomcat CGI servlet must be required. Actually whats happen is according to me , both are differnt server...and when I run my jsp 1st server with a port is running and then when I called mapserver from jsp it mean that I am saying tomcat to stop and listen an another server with differnt port . its like one executable file is called from one application.and I am getting output.but someone told me that it should not be run because of cgi ..I did not get..that s why I am asking that please let me clear about this.. And regarding my 1st question u suggest one functionwhich I already wrote in PHP.(given below)..but I think u did not get this question also.Actually I have several pictures(not raster data) which I taken from google snapshot..but their extent is (0,0,456,567size=456X567)(0,0,567,657) like that..Look, all images have minx and miny 0.so how I will convert this one to lat long formor from where I will get lat long data.I hope now u will getand reply me soon.. Thanks... Amiya Patra // Convert from image to map coordinates function img2map($width,$height,$point,$ext) { $minx = $ext-minx; $miny = $ext-miny; $maxx = $ext-maxx; $maxy = $ext-maxy; if ($point-x $point-y) { $x = $point-x; $y = $point-y; $dpp_x = ($maxx-$minx)/$width; $dpp_y = ($maxy-$miny)/$height; $x = $minx + $dpp_x*$x; $y = $maxy - $dpp_y*$y; } $pt[0] = $x; $pt[1] = $y; return $pt; } ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] getting extent and integration from amiya
Hi everyone I got the ans of 1st one...I need to 2nd one Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] getting extent(urgent)
Hi from where I will get GIS raster data? Actually I got some tiff images(from google snapshot)which has pixel extent (like 0,0,456,567). and using those images I am creating images. So obviously output will be same images. I need some tiff raster data files with longitude latitude extent. Is it possible to change the extent of pixels to long lat form?I know it is possible to get geo coordinates from raster file with lat long extent. Actually I want to calculate the lat long on any point of created image but then I need to have lat long extent (as reference point) so that I can calculate. Plz help me Thanks Amiya Patra ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] ICON Placing (Symbol) within raster file
Hi Steve But how It is possible for raster file because in raster file symbol is not supported. Instead of that I tried by keyimage but I am unable to get..plz help me regarding that. Thank you. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users