shp2img failing on super-basic mapfile

Daniel Morissette dmorissette at MAPGEARS.COM
Mon Oct 15 13:44:42 EDT 2007


Webb Sprague wrote:
> I am trying to generate an image from the following mapfile, but I
> keep getting the following:
> 
> MAPSCRIPT[0]$ shp2img  -m map2  > foo
> msEvalRegex(): Regular expression error. String (map2) failed
> expression test. <br>
> 

The "failed expression test" in this case is on the mapfile filename 
itself: "map2" is missing a ".map" extension.

Rename "map2" to "map2.map" and try again.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the mapserver-users mailing list