[mapserver-users] Beginning mapserver & sql server 2008

Wesley wesmota at gmail.com
Tue Jun 30 13:07:42 EDT 2009


Hi all,

It's my first time with mapserver, and I'm trying to use a map file
connected with sql server 2008. Mapserver is generating a blank image.
I think there is something wrong with my map file below.
Do you have any examples or tutorial about it?

Thanks,
__________________________________________________________


MAP
 NAME "sample"
 STATUS ON
 SIZE 400 300
 IMAGETYPE gif
 EXTENT -66.00 -22.00 -44.00 -9.00
 UNITS DD

#
# Start of web interface definition
#
 WEB
     TEMPLATE "D:\ms4w\Apache\htdocs\testesql.html"
     IMAGEPATH "D:\ms4w\tmp\ms_tmp\"
     IMAGEURL "/tmp/"
 END

 LAYER

   NAME "Camada1"

   CONNECTIONTYPE PLUGIN
   PLUGIN "D:\ms4w\plugins\msplugin_mssql2008.dll"

   CONNECTION "server=luzon2\sqlexpress;uid=sa;pwd=senha1234;database=TESTE;Integrated
Security=false"

   DATA "geom from lixo"
   TYPE POLYGON

   STATUS ON

    PROJECTION
       "init=epsg:4326"
    END

    CLASS
      STYLE
        COLOR 0 0 255
        WIDTH 8
      END
    END

  END

END


More information about the mapserver-users mailing list