[mapserver-dev] Beginning Mapserver & sql server 2008
Brent Fraser
bfraser at geoanalytic.com
Tue Jun 30 17:32:54 EDT 2009
Wesley,
Try setting:
IMAGEURL "/ms_tmp/"
And to test the rest of your map file, you may want to try Mapserver's
command-line companion tool shp2img (ms4w puts it in \ms4w\Apache\cgi-bin):
shp2img -all_debug 5 -m mymapfile.map -o test.gif
Best Regards,
Brent Fraser
Wesley wrote:
> 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
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
More information about the mapserver-dev
mailing list