RE: [mapserver-users] how to specify the location of projection library, how to do it not in map file?
Hi Steve, How to do it via Apache configuration? What is the syntax? Is it like this: "PROJ_LIB" "./cgi-bin/" Nope, we can't over-write the path names. Thanks for your helps. JK -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, September 08, 2011 3:06 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] how to specify the location of projection library, how to do it not in map file? On 9/8/2011 5:02 PM, Stephen Woodbridge wrote: > On 9/8/2011 5:05 PM, JK Chen wrote: >> Hi, >> >> I specify the location proj library in the map file, which points to >> apache cgin-bin dirs.. Because we have 32 bit and 64 bit machines, >> and the paths of the apache software on those two types machines are >> not the same, I end up having two map files. >> That creates installation problems for us. I'm wondering if there is >> more elegant way to specify the path to proj library? >> >> In basegn.x32.map >> CONFIG "PROJ_LIB" "C:/Program Files/Apache Software >> Foundation/Apache2.2/cgi-bin/" >> In basegn.x64.map >> CONFIG "PROJ_LIB" "C:/Program Files (x86)/Apache Software >> Foundation/Apache2.2/cgi-bin/" > > I believe you can set this up as an environment variable in each > apache instance so so it points to the correct file. You would have to > do this in the apache config file(s). See: http://trac.osgeo.org/mapserver/wiki/EnvironmentVariables If you can do it in the apache config because you do not have access to it, you could write a simple wrapper script the exports the enviroment variable and then executes mapserver. -Steve W ___ 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] how to specify the location of projection library, how to do it not in map file?
Hi, I specify the location proj library in the map file, which points to apache cgin-bin dirs.. Because we have 32 bit and 64 bit machines, and the paths of the apache software on those two types machines are not the same, I end up having two map files. That creates installation problems for us. I'm wondering if there is more elegant way to specify the path to proj library? In basegn.x32.map CONFIG "PROJ_LIB" "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/" In basegn.x64.map CONFIG "PROJ_LIB" "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/" Thanks. JK ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] my overview map is dark, what is going on? Is it because of map server (I created), or the client code?
Hi, I made my own map using the Map Server and client with OpenLayers. At zoom out levels, my Overview map becomes dark, however, the box in there is draggable. But, how come it is dark? How to fix that? Root cause? Sorry, I'm very new to the map space. So, pardon me for the questions. I included these in this email thread. *Map file, is listed end of the email. *Here is the screen shot I got. Attached. *OpenLayers code used to create the map is also listed here. The screenshot can be accessed here too. http://osgeo-org.1803224.n2.nabble.com/file/n6729648/Dark_Overview_Map.jpg OpenLayers code: this.wms_basic_layer = new OpenLayers.Layer.WMS( wms.wms_layer_display_name, wms.wms_url, {layers: wms.wms_layer_name}, {wrapDateLine: true}); this.map.addLayer(this.wms_basic_layer) Map file: MAP # a Map file starts with MAP keyword #CONFIG "MS_ERRORFILE" "c:\dev\ms_error.txt" #DEBUG 5 IMAGETYPE jpeg EXTENT -180 -90 180 90 SIZE 256 256 SHAPEPATH "." IMAGECOLOR 255 255 255 CONFIG "PROJ_LIB" "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/" PROJECTION "init=epsg:4326" END WEB MINSCALEDENOM 1000 MAXSCALEDENOM 700 METADATA "wms_title" "WMS Server" "wms_abstract""Vantage WMS Server" END END LAYER #basemap NAME basemap # layer name exposted to URL EXTENT -180 -90 180 90 # cover the entire world TILEINDEX"baseGN" # referring to shape file SHAPEPAH\TITLEIDEX.shp TILEITEM "location" # always "location" STATUS ON TYPE RASTER # it's raster image METADATA "wms_title" "basemap" END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users