Throwing Regular expression error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Throwing Regular expression error

rahultandon
This post has NOT been accepted by the mailing list yet.
This is my map file-
# Map file created from QGIS project file F:/bhopal.qgs

# Edit this file to customize for your map interface

# (Created with PyQgis MapServer Export plugin)



MAP
  NAME "QGIS-MAP"
 
#Map image size
 
SIZE 100 100
  UNITS meters

  EXTENT 296747.718372 395459.625781 497369.625378 491140.842969
 
#FONTSET './fonts/fonts.txt'
 
#SYMBOLSET './symbols/symbols.txt'
 
PROJECTION
    'proj=tmerc'
    'lat_0=24'
    'lon_0=78.416'
    'k=0.999444'
    'x_0=500000'
    'y_0=500000'
    'ellps=WGS84'
    'towgs84=0,0,0,0,0,0,0'
    'units=m'
    'no_defs'
  END


  # Background color for the map canvas -- change as desired
 
IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE agg

  OUTPUTFORMAT
    NAME agg
    DRIVER AGG/PNG
    IMAGEMODE RGB
  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
TEMPLATEPATTERN 'a*'
WEB





   
# Set IMAGEPATH to the path where MapServer should
   
# write its output

TEMPLATE 'a.html'  
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"  
# Set IMAGEURL to the url that points to IMAGEPATH
   
# as defined in your web server configuration
   
IMAGEURL "/ms_tmp/"
 
 
# WMS server settings
METADATA
      'ows_title' 'QGIS-MAP'    'ows_onlineresource'  'http://http://localhost/cgi-bin/mapserv.exe?MAP=F:/t.map&LAYERS=ALL&MODE=zoomin
'      'ows_srs'             'EPSG:0'
    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
   
TEMPLATE 'a.html'
  END

 
 LAYER
    NAME 'area_original'
    TYPE POLYGON
    DUMP true
    TEMPLATE fooOnlyForWMSGetFeatureInfo
  EXTENT 296747.718372 395459.625781 497369.625378 491140.842969
    DATA 'F:/RT/rough_data/area_original.shp'
    METADATA
      'ows_title' 'area_original'
    END
    STATUS OFF
    TRANSPARENCY 100
    PROJECTION
    'proj=tmerc'
    'lat_0=24'
    'lon_0=78.416'
    'k=0.999444'
    'x_0=500000'
    'y_0=500000'
    'ellps=WGS84'
    'towgs84=0,0,0,0,0,0,0'
    'units=m'
    'no_defs'
    END
    CLASS
       NAME 'area_original'
       STYLE
         WIDTH 0.91
         OUTLINECOLOR 0 0 0
         COLOR 234 227 1
       END
    END
  END

END



and this is my html file


<html>
<head>
<title>My Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" rel="stylesheet" href="theme.css"/>
</head>

<body bgcolor="#FFFFFF" text="#000000">
   

Bhopal Map



<form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe">


    <input type="hidden" name="map" value="[map]">
    <input type="hidden" name="imgext" value="[mapext]">
    <input type="hidden" name="imgxy" value="199.5 149.5">
     <input type="hidden" name="mode" value="browse">
      <input type="hidden" name="zoom" value="2">
     
                                                                         
Select Layers:

              <input type="checkbox" name="layer" value="area_original"
              [states_check] checked>Bhopal 
             


             
           


              <div align="center">Map Mode:<br>
                <select name="mode">
                  <option value="browse" [browse_select]>Browse</option>
                </select>
              </div>
           

              <div align="center">
                <input type="submit" name="submit" value="Refresh">
              </div>





i am using following link-
http://localhost/cgi-bin/mapserv.exe?MAP=C:/ms4w/apps/t.map&LAYERS=ALL&MODE=browse

when i click on refresh button it throw error

msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test.

 anyone can tell me what is mistake done by me????