Do you want the map to be displayed in a html page, or do you just need the pic?
In the latter case, you could try to just query the following link: http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w2/apps/tutorial/htdocs/basic.map&layer=states&mode=map<http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w2/apps/tutorial/htdocs/basic.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+basic.html> I also suggest you use the typical hello world to test and try your mapserver (and get a feel for it). Depending on what your ultimate goal is, you may or may not need the web templates at all. This would be a simple sample of a hello world map: MAP NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END Considering its named hello.map, you'd get an image by browsing to http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w2/apps/helloworld/hello.map&mode=map<http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w2/apps/tutorial/htdocs/basic.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+basic.html> (Don't forget to add the helloworld map in the apps directory) On 16 August 2010 08:27, Gupta <[email protected]> wrote: > > Hi all, > I am new to MAp server . i understood mapserver functionalities using the > tutorial.now i want to create a map using image and shape file.when tried to > use it.i am getting following error. > > loadWeb(): General error message. URL-based TEMPLATE configuration failed > pattern validation. msEvalRegex(): Regular expression error. String > (basic.html) failed expression test. > > my local URL is: > http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w2/apps/tutorial/htdocs/basic.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+basic.html > > actually i changed example2.2 file to basic.and in mapfile i placed my > image. > > please let me know what i need to change to get output. > > Thanks and Regards, > Kishor Gupta. > Project Engineer, > CDAC,Bangalore, > INDIA. > Ph.no:09538722172 > If a drop of water falls on lake, it loses its identity. > > If it falls on a rose, it shines. > > If it falls on a shell, it becomes a pearl. > > The drop is the same but the company matters > > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
