shp2img failing on super-basic mapfile

Webb Sprague webb.sprague at GMAIL.COM
Mon Oct 15 13:31:10 EDT 2007


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>

Please help!  I am running mac os x, with a fink install of mapserver.

Thx

Mapfile:

MAP
        NAME HELLO
        STATUS ON
        EXTENT 0 0 4000 3000
        SIZE 400 300
        IMAGECOLOR 200 255 255
        WEB
                IMAGEPATH "/tmp/"
                IMAGEURL "/tmp/"
        END

        LAYER
                NAME "credits"
                STATUS DEFAULT
                TRANSFORM FALSE
                TYPE ANNOTATION
                FEATURE
                        POINTS
                                200 150
                        END
                        TEXT 'Hello world.  Mapserver rocks.'
                END

                CLASS
                        LABEL
                                TYPE BITMAP
                                COLOR 0 0 0
                        END
                END
        END
END



More information about the mapserver-users mailing list