[mapserver-users] Securing a WMS server
Hi, I been trying to secure my WMS server resource via login/password using the mapfile configuration below. However, it's not working as it doensn't ask for any login/pwd with my testing using a wms client like Arcgis 9.3 The image map will just appear as usual. Rgds YC --- WEB TEMPLATE default.html IMAGEPATH C:\web\soul\wms\temp\ IMAGEURL /temp/ METADATA WMS_TITLE Map Service WMS_ABSTRACT GIS WMS_SERVER_VERSION 1.1.1 WMS_ONLINERESOURCE http://localhost?map=/webwms/wms.mapamp;; WMS_SRS EPSG:4326 WMS_AUTH_TYPE basic WMS_AUTH_USERNAME 1234 # username here WMS_AUTH_PASSWORD 1234 # password here END END___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Disable drawing points that are not labelled
I have a POI shape file which has lots of points close to each other. Due to this, the labels of some points appear while others don't. The point symbol does appear for all the points. How to i set so that only points that are labelled will have the point symbol displayed while those that doesn't have labels displayed will not appear at all. Rgds YC ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Wrapper using Asp.net
hi, I manage to use the code below (found in the manual pg.346) as a wrapper to the WMS service running on my development server which is win 2003 std server. However the deployment server is Win2008 server and i understand it doesn't come with asp support. Tried saving the existing asp file to aspx. However it got a End of statement expected at line 5. Has anyone got this working and don't mind sharing this workaround code. Thanks YC % Server.ScriptTimeout = 360 Select Case Request.ServerVariables(REQUEST_METHOD) Case GET strRequest = Request.QueryString Case POST strRequest = Request.Form End Select strURL = http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\workshop\itasca.map; Dim objHTTP Set objHTTP = Server.CreateObject(MSXML2.ServerXMLHTTP) objHTTP.open GET, strURL, false objHTTP.send Response.ContentType = objHTTP.getResponseHeader(content-type) Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing % ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users