[ms4w-users] Resend- MS4W in IIS
Jeff McKenna
jmckenna at dmsolutions.ca
Sun Oct 21 15:39:31 EDT 2007
Comments inline:
Jessica Fendos wrote:
> Hi list:
>
> I am using MS4W package with Chameleon in an IIS environment. Some
> of my mapping applications will display map images (containing both
> shapefiles and PostGIS data) in Apache but when I tried to display
> both types of data in IIS, I got an broken image. It seems that I
> can display only multiple shapefiles OR only PostGIS data but not
> both in IIS.
I have never come across or heard of such a problem.
> In addition, when I tested using a php file,
> ?php
>
> dl("php_mapscript.dll");
>
> $oMap =
> ms_newMapObj("/ms4w/apps/chameleon/samples/map/world_wms.map");
> $oImage = $oMap->draw();
> header("Content-type: image/png");
> $oImg->saveImage("/ms4w/tmp/ms_tmp/test.png");
>
> ?>
> I got this error message: The image
> "http://mapt.deed.state.mn.us:8080/chameleon/samples/test.php";;
> > cannot be displayed, because it contains errors.
> However,
> "The image created by the script is fine when accessed via:
> http:// mapt.deed.state.mn.us:8080/ms_tmp/test.png" .
>
> I am really lost as to how to fix this problem. Could someone please
> guide me on this? Thank you for your time.
>
Odd. By the way a nice little test script for php/mapscript is included
in ms4w at /ms4w/Apache/htdocs/quickmap.php.
What happens when you try your mapfile with a shp2img command?
--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the ms4w-users
mailing list