[mapserver-users] GetCapabilities error

Favre, Sebastien Sebastien.Favre at spotimage.fr
Mon Mar 28 18:17:05 EDT 2011


Hello to all,

I have the following error when I make a WMS GetCapabilties request :

msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test.
Do you have an idea of what could be wrong ?

Here is my map file  :

MAP
  
  EXTENT -180 -90 180 90
  IMAGECOLOR 128 128 255
  IMAGETYPE gif
  SIZE 800 400
  STATUS ON
  UNITS METERS
  NAME "sample"
  
  PROJECTION
    "init=epsg:4326"
  END

  WEB
    METADATA
		"wms_onlineresource"	"http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile_test.map&"
		"wms_title"           "WMS Server"
		"wms_srs"             "EPSG:4326"
    END
  END

  LAYER
    DEBUG 5
    DATA "C:/ms4w/Apache/htdocs/webmapping/data/mapserver/land.shp"
    DUMP TRUE
    METADATA
		"wms_title"	"World countries"
    END
    NAME "land"
    STATUS ON
    TYPE POLYGON
    UNITS METERS
	CLASS
		NAME 'World Continents'
		STYLE
			COLOR 255 128 128
			OUTLINECOLOR 96 96 96
		END
	END
  END

END

And my request :

http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/webmapping/data/mapserver/mapfile.map?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1

Thank you.

Sébastien
-------------- next part --------------

Ce courrier électronique et toutes les pièces éventuellement jointes qu?il contient sont CONFIDENTIELS et destinés exclusivement à l?usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d?en informer l?expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n?êtes pas le destinataire de ce courrier, vous ne devez pas l?utiliser, le conserver, en faire état, le distribuer, le copier, l?imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit SPOT IMAGE SA, ni ses filiales.

This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind SPOT IMAGE SA in any contract or obligation, nor its subsidiaries.


More information about the mapserver-users mailing list