[mapserver-users] Point in polygon
Hi list, I have a problem with defined a point is in which polygon. For example, a map have 2 layer: commune-polygon; park - point. I want to layout color of polygon (each commune) depend on amount of point in this polygon. I done with query polygon from mySQL database, layout its color base on an attribute in database. My question is that how could i know which polygon that point inside??? Thanks for your attentions and sorry about my language skills. -- View this message in context: http://n2.nabble.com/Point-in-polygon-tp3690813p3690813.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
SV: [mapserver-users] Upgrading ms4w setup.exe installer
Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, httpd.exe can't execute The system cannot execute the specified program. I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users@lists.osgeo.org Ämne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some howto? /Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued
Current position: On my Windows server 2003, SP2, MS4W 3.0 simply does not install. I make a new download of the zipfile and expand it as C:/ms4w ... I copy msvcr90.dll from cgi-bin to a directory in the path. Still, I get The system cannot execute the specified program. Using dependency walker on httpd.exe, I get errors on loading IESHIMS.DLL and WER.DLL which both are probably not required (delay-load). And msvcr90 was fixed with above action. Still, this program says Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\HTTPD.EXE contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBHTTPD.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPRICONV-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPR-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Warning: At least one delay-load dependency module was not found. I've tried with the standard looks of the configuration from the download, and know nothing about any application configuration that could be wrong. The download works well on my Windows XP-system, and the old ms4w installed using the windows installer works well on this Windows 2003 server. Please help /Lars Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 22 September 2009 09:48 Till: mapserver-users@lists.osgeo.org Ämne: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, httpd.exe can't execute The system cannot execute the specified program. I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users@lists.osgeo.org Ämne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some howto? /Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Upgrading ms4w setup.exe installer - continued
Rahkonen Jukka wrote: Hi, Just the same for me and our Windows server 2003, SP2. I unzipped everything to d:\ms4w as usual, but Apache does not start. Error message is “The system cannot execute the specified program”. -Jukka Rahkonen- *Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *Puolesta *Lars Westerlind *Lähetetty:* 22. syyskuuta 2009 12:30 *Vastaanottaja:* Lars Westerlind; mapserver-users@lists.osgeo.org *Aihe:* SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued Current position: On my Windows server 2003, SP2, MS4W 3.0 simply does not install. I make a new download of the zipfile and expand it as C:/ms4w … I copy msvcr90.dll from cgi-bin to a directory in the “path”. Still, I get “The system cannot execute the specified program”. Using dependency walker on httpd.exe, I get errors on loading IESHIMS.DLL and WER.DLL which both are probably not required (delay-load). And msvcr90 was fixed with above action. Still, this program says *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\HTTPD.EXE contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBHTTPD.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPRICONV-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPR-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Warning: At least one delay-load dependency module was not found.* I’ve tried with the standard looks of the configuration from the download, and know nothing about any “application configuration” that could be wrong. The download works well on my Windows XP-system, and the old ms4w installed using the windows installer works well on this Windows 2003 server. Lars Jukka, Would you mind posting your issues on the MS4W-users mailing list so all users can follow along? (join at http://lists.maptools.org/mailman/listinfo/ms4w-users) thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued
Done. Topic moved to the other list /Lars -Ursprungligt meddelande- Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Jeff McKenna Skickat: 22 September 2009 13:31 Till: mapserver-users@lists.osgeo.org Ämne: Re: [mapserver-users] Upgrading ms4w setup.exe installer - continued Rahkonen Jukka wrote: Hi, Just the same for me and our Windows server 2003, SP2. I unzipped everything to d:\ms4w as usual, but Apache does not start. Error message is The system cannot execute the specified program. -Jukka Rahkonen- *Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *Puolesta *Lars Westerlind *Lähetetty:* 22. syyskuuta 2009 12:30 *Vastaanottaja:* Lars Westerlind; mapserver-users@lists.osgeo.org *Aihe:* SV: [mapserver-users] Upgrading ms4w setup.exe installer - continued Current position: On my Windows server 2003, SP2, MS4W 3.0 simply does not install. I make a new download of the zipfile and expand it as C:/ms4w ... I copy msvcr90.dll from cgi-bin to a directory in the path. Still, I get The system cannot execute the specified program. Using dependency walker on httpd.exe, I get errors on loading IESHIMS.DLL and WER.DLL which both are probably not required (delay-load). And msvcr90 was fixed with above action. Still, this program says *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\HTTPD.EXE contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBHTTPD.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPRUTIL-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPRICONV-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Error: The Side-by-Side configuration information for c:\ms4w\apache\bin\LIBAPR-1.DLL contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).* *Warning: At least one delay-load dependency module was not found.* I've tried with the standard looks of the configuration from the download, and know nothing about any application configuration that could be wrong. The download works well on my Windows XP-system, and the old ms4w installed using the windows installer works well on this Windows 2003 server. Lars Jukka, Would you mind posting your issues on the MS4W-users mailing list so all users can follow along? (join at http://lists.maptools.org/mailman/listinfo/ms4w-users) thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ 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
Re: [mapserver-users] Point in polygon
I know if you were in PostGIS you could do a spatial join of sorts. That is join each commune polygon with the points it contains (or just a count) based on an intersection operator. I don't know if that's possible with MySQL or not. You could also consider pre-processing your data if it doesn't change often. A simple MapScript script could be used like so: - for each commune geom - build a shapeObj - do a queryByShape() against the point data - store the count in the appropriate commune record You might have to pull the park data into something MapServer can query. With the count in the commune data you could easily classify on that attribute. You'd see better performance as well. Some ideas anyway. Steve truongpm truong_pham_m...@yahoo.com 09/22/09 2:13 AM Hi list, I have a problem with defined a point is in which polygon. For example, a map have 2 layer: commune-polygon; park - point. I want to layout color of polygon (each commune) depend on amount of point in this polygon. I done with query polygon from mySQL database, layout its color base on an attribute in database. My question is that how could i know which polygon that point inside??? Thanks for your attentions and sorry about my language skills. -- View this message in context: http://n2.nabble.com/Point-in-polygon-tp3690813p3690813.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ 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
RE: [mapserver-users] Upgrading ms4w setup.exe installer
Lars, According to MapTools.org, the latest version of MS4W includes MapServer 5.4.2. http://www.maptools.org/ms4w/ Is this what you are looking for? David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lars Westerlind Sent: Tuesday, September 22, 2009 2:48 AM To: mapserver-users@lists.osgeo.org Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, httpd.exe can't execute The system cannot execute the specified program. I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users@lists.osgeo.org Ämne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some howto? /Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
SV: [mapserver-users] Upgrading ms4w setup.exe installer
David, Not really looking for. I've at last successfully installed the mentioned 5.4.2 in MS4W 3.0. The problem was a dependency to new C++ DLLs or similar, on my Windows Server 2003, which may be followed on the ms4w mailing list. My original problem was that the 5.4 2 was only included in a zipfile download, not the kind using windows installer. The zipfile download should be loaded at disk drive root, and use port 80. But I've succeeded in changing the apache config files by reading the README of the ms4w very carefully. Thanks. /Lars Från: Fawcett, David [mailto:david.fawc...@state.mn.us] Skickat: 22 September 2009 16:29 Till: Lars Westerlind; mapserver-users@lists.osgeo.org Ämne: RE: [mapserver-users] Upgrading ms4w setup.exe installer Lars, According to MapTools.org, the latest version of MS4W includes MapServer 5.4.2. http://www.maptools.org/ms4w/ Is this what you are looking for? David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lars Westerlind Sent: Tuesday, September 22, 2009 2:48 AM To: mapserver-users@lists.osgeo.org Subject: SV: [mapserver-users] Upgrading ms4w setup.exe installer Struggling on my own then. I've found the instructions, to change paths for the new location (which BTW is under 'Program files' meaning there is space in the path), and to change the port for Apache server, in particular section H in the readme-install. There is a warning against space in the path; however, nothing about caused problems, or what to do when there is a space in the path. So I try anyway. The problem is, httpd.exe can't execute The system cannot execute the specified program. I guess there is a missing DLL or something on my Windows XP system. When I compare with the working previous release, httpd is now smaller than before. I tried using the old httpd in the new environment, but it got problems, probably with wrong configuration. Any hints? Are there required DLLs? Could I simply try running the old httpd with it's old configuration? /Lars Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 21 September 2009 15:46 Till: mapserver-users@lists.osgeo.org Ämne: [mapserver-users] Upgrading ms4w setup.exe installer Hi all, We would like to upgrade our MapServer which was installed using setup.exe installer installation. Unfortunately there is no such for 5.4.2, and we do want to keep the directory structure, port settings Etc as we have from our current install. Is there a pointer to some howto? /Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapserver consuming Google Maps
How do I write code (map File) to consume aerial images (not obliques) from Google maps or Bing etc. This is an example of a few services that I am consuming right now... BUT need the aerialsI assume that I can consume the aerials just as you see in Bing or Google Maps.. Any help would be greatly appreciated. map title=Weather Radar default=false zindex=-1 filehttp://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?LAYERS=nexrad-n0ramp;SERVICE=WMSamp;VERSION=1.1.1amp;REQUEST=GetMapamp;STYLES=amp;FORMAT=image/pngamp;SRS=EPSG:26915amp;BBOX=%MINX%,%MINY%,%MAXX%,%MAXY%amp;WIDTH=%WIDTH%amp;HEIGHT=%HEIGHT%amp;TRANSPARENT=TRUE/file /map map title=Infrared Satellite default=false zindex=-1 filehttp://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/conus_ir.cgi?LAYERS=nexrad-iramp;SERVICE=WMSamp;VERSION=1.1.1amp;REQUEST=GetMapamp;STYLES=amp;FORMAT=image/pngamp;SRS=EPSG:26915amp;BBOX=%MINX%,%MINY%,%MAXX%,%MAXY%amp;WIDTH=%WIDTH%amp;HEIGHT=%HEIGHT%amp;TRANSPARENT=TRUE/file /map -Original Message- From: Christopher Schmidt [mailto:crschm...@metacarta.com] Sent: Monday, September 21, 2009 4:14 PM To: Jay Kapalczynski Subject: Re: [mapserver-users] Mapserver consuming Google Maps On Mon, Sep 21, 2009 at 03:49:54PM -0500, Jay Kapalczynski wrote: I am trying to see if there is a way to consume the Aerial images from Google Maps inside a map server / open layers application. Not the obliques... Is this at all possible? Even fee based OpenLayers does this by design. (It is not a 'Desktop client'.) So yes. If you want more information, send mail to a mailing list, rather than to me personally. -- Chris -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Christopher Schmidt Sent: Wednesday, August 26, 2009 12:16 PM To: Marco Foi (marco.foi) Cc: Rahkonen Jukka; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Mapserver consuming Google Maps On Wed, Aug 26, 2009 at 05:13:53PM +0200, Marco Foi (marco.foi) wrote: Some time ago a similar issue was raised among UDig users and the conclusion was that: IT IS NOT POSSIBLE to consume Google Maps in Desktop clients. This isn't strictly true. Desktop clients which are capable of embedding a browser can use the browser, render a scene, take the resulting image, and display that to the client. There are a number of clients which do exactly that in OpenStreetMap editors, for example. However, this is obviousl significantly more complex than just fetching the tiles, which is the way most people discuss doing it. Anything is possible, but that doesn't mean it will be easy. Regards, -- Christopher Schmidt MetaCarta ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url
Ted Spradley wrote: Then I tried setting the environment variable by adding 'SetEnv LD_LIBRARY_PATH /usr/local/lib' to the /var/www/vhosts/domain/conf/httpd.include file as follows: VirtualHost xxx.xxx.xxx.xx:80 ServerName maps.domain.com:80 SuexecUserGroup snoogadmin psacln ServerAdmin ad...@domain.com DocumentRoot /var/www/vhosts/domain.com/subdomains/maps/httpdocs CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log ScriptAlias /cgi-bin/ /var/www/cgi-bin/ SetEnv LD_LIBRARY_PATH /usr/local/lib and restarted Apache, but with the same result of '500 Internal Server Error'. You also need to tell Apache to pass the env var to the CGI environment using PassEnv: PassEnv LD_LIBRARY_PATH Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer Question
Hi all, Does MapServer support Unicode characters? Is it possible to embed any unicode characters such as tonemarked alphabets in the generated map, and/or in the generated legend (which are a pictures, .gif)? If possible, can you please direct me to some resources out there that can guide me. cheers Jay ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Building mapscript.so for Java with swig?
I need help to build the library mapscript.so to work with java mapscript, I already have the source code of mapserver, and swig 1.3.40, everything installed on linux, which are the steps to generate the library mapscript.so? Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] display feature name beside feature
Hi Steve, Thanks for your reply. Regarding the railway points I was able to see the points before doing all this. I did all this just to see the Labels i.e names of the railway stations beside the points But I am not able to see this. Can u tell me where the problem is? What am I doing wrong? Thanks again. Steve Lime wrote: And you can see the railway points? On 9/21/2009 at 7:34 AM, in message 1253536453758-3684929.p...@n2.nabble.com, sunny74 sb@hotmail.com wrote: Hi Lars, I have added the fontset file and also the Label and other definitions at the appropriate places but still the Labels are not being displayed for the layer RailwayStation. My map file now looks like this: # Map file created from QGIS project file D:/QGIS/newwr.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME newwr.map # Map image size SIZE 600 600 UNITS dd EXTENT 67.440106 17.379867 78.390250 25.122977 FONTSET 'c:/ms4w/Apache/cgi-bin/shape/fonts.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE gif OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' #IMAGEMODE PC256 EXTENSION 'gif' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA 'wms_title' 'newwr.map' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map;' 'wms_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'STATE' TYPE POLYGON DATA 'C:\ms4w\Apache\cgi-bin\Shape\STATE.shp' LABELITEM 'STATE' CLASSITEM 'STATE' METADATA 'wms_title' 'STATE' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'STATE' STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 255 255 127 END END END LAYER GROUP 'basic1' NAME 'WaterBody' TYPE POLYGON DATA 'C:\ms4w\Apache\cgi-bin\Shape\WaterBody.shp' METADATA 'wms_title' 'WaterBody' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'WaterBody' MAXSCALEDENOM 200 MINSCALEDENOM 150 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 150 123 90 END END END LAYER GROUP 'basic1' NAME 'Rail_Buffer' TYPE POLYGON DATA 'C:\ms4w\Apache\cgi-bin\Shape\Rail_Buffer.shp' METADATA 'wms_title' 'Rail_Buffer' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Rail_Buffer' MAXSCALEDENOM 200 MINSCALEDENOM 150 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 117 232 255 END END END LAYER GROUP 'basic1' NAME 'Roads' TYPE LINE DATA 'C:\ms4w\Apache\cgi-bin\Shape\Roads.shp' METADATA 'wms_title' 'Roads' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Roads' MAXSCALEDENOM 200 MINSCALEDENOM 150 STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 45 220 182 COLOR 0 0 0 END END END LAYER GROUP 'basic2' NAME 'Diversions' TYPE LINE DATA 'C:\ms4w\Apache\cgi-bin\Shape\Diversions.shp' METADATA 'wms_title' 'Diversions' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS NAME 'Diversions' MAXSCALEDENOM 150 MINSCALEDENOM 100 STYLE
[mapserver-users] swf output
I AM TRYING TO GET SWF FILE OUTPUT FROM MAPSERVER ALTHOUGH I AM NOW GETTING THE FLASH DISPLAY .BUT I DON'T KNOW WHERE TO PROVIDE CONTROLS OVER SWF OBJECT I TRIED TO CONTROL IT WITH JAVASCRIPT BUT NOT CAPABLE OF DOING IT . READ ONE FORUM SAYING ACTION SCRIPT CAN DO THIS FOR ME HOW TO INCLUDE ACTION SCRIPT INTO MY PHP DOCUMENT CAN ANYBODY HELP ME IN SOLVING THIS .. THANX IN ADVANCE HARPAL SINGH ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url
Daniel Morissette wrote: Ted Spradley wrote: Then I tried setting the environment variable by adding 'SetEnv LD_LIBRARY_PATH /usr/local/lib' to the /var/www/vhosts/domain/conf/httpd.include file as follows: VirtualHost xxx.xxx.xxx.xx:80 ServerName maps.domain.com:80 SuexecUserGroup snoogadmin psacln ServerAdmin ad...@domain.com DocumentRoot /var/www/vhosts/domain.com/subdomains/maps/httpdocs CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log ScriptAlias /cgi-bin/ /var/www/cgi-bin/ SetEnv LD_LIBRARY_PATH /usr/local/lib and restarted Apache, but with the same result of '500 Internal Server Error'. You also need to tell Apache to pass the env var to the CGI environment using PassEnv: PassEnv LD_LIBRARY_PATH Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Thanks Daniel. It appears I made something simple, complicated. Ultimately the solution was: 1. setting: 'Options -Includes -ExecCGI' whereas prior to this options were 'Options -Includes +ExecCGI' 2. removing the ScriptAlias from the virtualhost context. 'http://maps.domain.com/cgi-bin/mapserv' now returns 'No query information to decode. QUERY_STRING is set, but empty. ' as expected. I include various unsuccessful attempts in the event it is helpful to someone in the future. # I entered the pass env directive into httpd.conf: PassEnv LD_LIBRARY_PATH Apache gave the following warning and the internal server error was still returned. 'Starting httpd: [Tue Sep 22 15:46:08 2009] [warn] PassEnv variable LD_LIBRARY_PATH was undefined' I tried entering the pass env directive: 1. after the SetEnv directive : SetEnv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib PassEnv LD_LIBRARY_PATH 2. without using the SetEnv directive PassEnv LD_LIBRARY_PATH 3. in Context server config, virtual host, and directory in the above two combinations ## Thanks to all, Ted S. -- View this message in context: http://n2.nabble.com/mapserver-files-to-subdomain-results-in-500-Internal-Server-Error-when-mapserv-executable-accessed-tl-tp3687559p3697577.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users