[mapserver-users] Mapserver WMS under IIS 7 x64 serving up blank images
Daniel Walton
dgwalton at gmail.com
Mon Dec 7 07:46:16 PST 2009
Thanks to all who've been helping me along. I'm getting close to having x64
working now. I've worked through a slew of issues over the weekend, most
related to permissions. My latest issue is that mapserv.exe, when invoked
via IIS 7's FastCGI (classic mode) module, is returning blank images.
GetCapabilities is working fine, and the GetMap images are the right size
and format, but they're blank. Here's my setup: I downloaded and installed
the x64 binaries (from Tamas, thanks!) into a single directory (C
:\mapserver\). The IIS impersonated user has sufficient privileges on this
folder and all data folders. I am accessing mapserver's WMS service with
this URL:
http://www.fireimagery.com/ms/mapserv.exe?map=C%3A%2Fmaps%2FA091207074551.map&SERVICE=WMS&REQUEST=GetMap&WIDTH=1680&HEIGHT=536&FORMAT=image/png&LAYERS=ZZ&S0TYLE=&BGCOLOR=0x888888&TRANSPARENT=FALSE&VERSION=1.3.0&CRS=EPSG:4326&BBOX=36.0156802563091,-123.307040153269,37.2036688809148,-119.583493717938&EXCEPTIONS=XML
The corresponding mapfile text is as follows:
MAP
EXTENT 36.0992948502284 -121.822480778145 36.3421121497716
-121.520865221855
IMAGECOLOR 255 255 255
IMAGETYPE PNG
SIZE -1 -1
STATUS ON
UNITS DD
CONFIG PROJ_LIB "C:/mapserver/"
NAME "A091207074551"
OUTPUTFORMAT
NAME "aggpng24"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "PNG"
IMAGEMODE "RGBA"
TRANSPARENT TRUE
END
PROJECTION
"init=epsg:4326"
END
QUERYMAP
COLOR 255 255 0
SIZE -1 -1
STATUS OFF
STYLE HILITE
END
WEB
IMAGEPATH ""
IMAGEURL ""
METADATA
"wms_title" "A091207074551"
END
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END
LAYER
DATA
"C:\rawimages\A091207074551_output\A091207074551_0_config_PROCESS_RESULTS\BASINCOMPLEX_ftp.coloradoskye.com_2008_CA_Siege_080627_1200Local_SPOT_NIR_OUT.PNG"
EXTENT 36.0992948502284 -121.822480778145 36.3421121497716
-121.520865221855
METADATA
"wms_srs" "EPSG:4326"
"wms_extent" "36.1 -121.8 36.3 -121.5"
"wms_title"
"BASINCOMPLEX_FTP.COLORADOSKYE.COM_2008_CA_SIEGE_080627_1200LOCAL_SPOT_NIR"
END
NAME "ZZ"
PROJECTION
"init=epsg:4326"
END
STATUS ON
TYPE RASTER
UNITS DD
END
END
I have tried several different image formats and drivers, all produce blank
images. Any ideas what might be wrong? Any way to set up more helpful error
trapping?
Thanks,
Dan Walton
GIS Fire Tools <http://gisfiretools.com>
On Sun, Dec 6, 2009 at 4:04 PM, Tamas Szekeres <szekerest at gmail.com> wrote:
> Daniel,
>
> In bin/gdal/apps you can find the generic gdal/ogr applications, whereas
> the applications in bin/gdal/csharp have been implemented by using the gdal
> c# API. gdalinfo.exe and ogrinfo.exe provides similar functionalities in
> both cases.
>
> Best regards,
>
> Tamas
>
>
>
>
> 2009/12/6 Daniel Walton <dgwalton at gmail.com>
>
> Tamas,
>>
>> In your binary distibutions there are 2 versions of gdalinfo.exe and
>> ogrinfo.exe, one in bin/gdal/apps and the other in bin/gdal/csharp. What is
>> the difference between the two versions?
>>
>> -Dan
>>
>>
>>
>> On Sat, Dec 5, 2009 at 3:31 AM, Tamas Szekeres <szekerest at gmail.com>wrote:
>>
>>> Have you configured mapping the .exe extension to this mapserv.exe with
>>> your IIS application?
>>> Make sure to enable CGI mode and copy all the x64 dll-s to the same
>>> directory as the mapserv.exe application.
>>> Set up the executing permissions to something like 'Scripts and
>>> Executables'
>>>
>>> Best regards,
>>>
>>> Tamas
>>>
>>>
>>>
>>> 2009/12/5 Daniel Walton <dgwalton at gmail.com>
>>>
>>> Tamas,
>>>>
>>>> Update: I removed the CGI mapping and just used the default CGI hander
>>>> in IIS. Now the request returns a file named mapserv.exe. I attached it as a
>>>> text file. Again, thanks for any insights.
>>>>
>>>> -Dan
>>>>
>>>>
>>>>
>>>> On Fri, Dec 4, 2009 at 9:14 PM, Daniel Walton <dgwalton at gmail.com>wrote:
>>>>
>>>>> Tamas,
>>>>>
>>>>> I installed the binaries from your website into c:\mapserver, added all
>>>>> the paths to the system path variable, and set up the IIS folders. Now I get
>>>>> a 500 internal error when trying to access mapserv.exe. The application log
>>>>> gives this error:
>>>>>
>>>>> *Faulting application mapserv.exe, version 0.0.0.0, time stamp
>>>>> 0x4b1893cb, faulting module libmap.dll, version 6.0.6001.18000, time stamp
>>>>> 0x4791adec, exception code 0xc0000135, fault offset 0x00000000000b1188,
>>>>> process id 0x4bc, application start time 0x01ca7557ca56f442.*
>>>>>
>>>>> Any idea what I'm doing wrong?
>>>>>
>>>>> Thanks,
>>>>> Dan
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Dec 4, 2009 at 2:22 PM, Tamas Szekeres <szekerest at gmail.com>wrote:
>>>>>
>>>>>> I've mostly used this with IIS6,but it should however work on IIS7 as
>>>>>> well.
>>>>>>
>>>>>> On IIS6 I configure a web server extensions to mapserv.exe (CGI mode)
>>>>>> and fcgiext.dll (for FastCGI).
>>>>>> Set up the executing permission (Scripts and Executables) and the
>>>>>> application extension mapping (.exe) to mapserv.exe or fcgiext.dll.
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Tamas
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2009/12/4 Daniel Walton <dgwalton at gmail.com>
>>>>>>
>>>>>>> Tamas,
>>>>>>> That's exactly what I was hoping you'd say! Which IIS module mapping
>>>>>>> should I use for *.exe?
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Dec 4, 2009 at 1:55 PM, Tamas Szekeres <szekerest at gmail.com>wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 2009/12/4 Daniel Walton <dgwalton at gmail.com>
>>>>>>>>
>>>>>>>>> Tamas,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks for the reply. If I just want to use mapserver CGI as a WMS
>>>>>>>>> server, do I need PHP? Is there another way to interact with mapserv.exe for
>>>>>>>>> this limited purpose (e.g. an ASP.NET wrapper or something)?
>>>>>>>>>
>>>>>>>>> -Dan
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Dan,
>>>>>>>>
>>>>>>>> If you use the MapServer CGI (mapserv.exe) you wouldn't require to
>>>>>>>> compile against PHP, the packages from http://vbkto.dyndns.org/sdk/could be used without any change.
>>>>>>>> Those packages also contain the MapScript C# interface
>>>>>>>> (mapscript_csharp.dll) which would support creating ASP.NETapplications around the MapServer codebase when you have further
>>>>>>>> requirements about the desired functionality.
>>>>>>>>
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> Tamas
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091207/8ce06397/attachment.htm>
More information about the MapServer-users
mailing list