[mapserver-users] GetCapabilities response being truncated
John Callahan
john.callahan at UDel.Edu
Wed Jul 15 15:36:36 PDT 2009
I'm still struggling to find the cause of this strange problem. Has
anyone successfully run x64 MapServer (from
http://vbkto.dyndns.org:1280/sdk/) on Windows? Has anyone ever seen the
4096 character truncating problem before? Thanks for any help you can
provide.
- John
John Callahan wrote:
> Update: I should rephrase my statements...
>
> When run from the command line, c:\apache2.2\cgi-bin\mapserv
> "QUERY_STRING=map=...REQUEST=GetCapabilities" only works when output
> is to the screen.
> When directing the output to a file, like c:\apache2.2\cgi-bin\mapserv
> "QUERY_STRING=map=...REQUEST=GetCapabilities" > geomap.xml, then the
> output is again truncated.
>
> The limit is not 4053 characters but rather 4096 characters. At least
> the number makes more sense.
>
> Using MapServer 5.4.1, x64 in Windows 2008 Server. More details on
> the environment is:
> http://vbkto.dyndns.org:1280/sdk/PackageInfo.aspx?file=release-1400-x64-gdal-1-6-mapserver-5-4.zip
>
>
>
> - John
>
>
>
>
> John Callahan wrote:
>> This seems to be a strange problem... I can generate maps fine
>> through the browser and mode=map. However, responses to
>> GetCapabilities requests are being truncated. They are being
>> truncated to 4053 characters. I've tried this using two separate map
>> files, using different data, both WMS 1.1.0 and 1.1.1 versions, and
>> the same result every time.
>> I found some references to old posts but they didn't seem to apply
>> here. My data in each map file is just one shapefile. My map file
>> symbology is also very simple; it's listed below.
>>
>> When run from the command line (mapserv
>> "QUERY_STRING=map=...REQUEST=GetCapabilities"), it works perfectly.
>>
>>
>> I'm using the x64 stable build from
>> http://vbkto.dyndns.org:1280/sdk/Default.aspx (MSVC2005 Win64)
>> Apache 2.2.10 and PHP 5.2.5 (x64 versions) if that matters.
>>
>>
>> I just don't know what's going on. Sounds like a problem with my
>> server setup. Has anyone experienced this before? Any suggestions
>> on what I can check? Thanks.
>>
>> - John
>>
>>
>> ***** start of mapfile
>> # Map file created from QGIS project file
>> C:/Apache2.2/cgi-bin/maps/geomap12.qgs
>> # Edit this file to customize for your map interface
>> # (Created with PyQgis MapServer Export plugin)
>> MAP
>> NAME 'geomap12'
>> # Map image size
>> SIZE 600 600
>> UNITS meters
>>
>> CONFIG "PROJ_LIB" "C:/programs/proj/nad/"
>>
>> EXTENT 213919.523729 80938.404739 236765.007609 99539.050324
>> PROJECTION
>> "init=epsg:26957"
>> END
>>
>> # Background color for the map canvas -- change as desired
>> TRANSPARENT ON
>> IMAGECOLOR 192 192 192
>> IMAGEQUALITY 95
>> IMAGETYPE png
>> OUTPUTFORMAT
>> NAME png
>> DRIVER 'GD/PNG'
>> MIMETYPE 'image/png'
>> #IMAGEMODE PC256
>> EXTENSION 'png'
>> END
>>
>> # Web interface definition. Only the template parameter
>> # is required to display a map. See MapServer documentation
>> WEB
>> # Set IMAGEPATH to the path where MapServer should
>> # write its output.
>> IMAGEPATH 'C:/Apache2.2/htdocs/output/'
>>
>> # Set IMAGEURL to the url that points to IMAGEPATH
>> # as defined in your web server configuration
>> IMAGEURL '/output/'
>>
>> # WMS server settings
>> METADATA
>> 'wms_title' 'geomap12'
>> 'wms_onlineresource'
>> 'http://diagproweb01/cgi-bin/mapserv.exe?map=c:/webgis/mapfiles/geomap12.map&'
>>
>> 'wms_srs' 'EPSG:26957 EPSG:4326'
>> END
>>
>> #Scale range at which web interface will operate
>> # Template and header/footer settings
>> # Only the template parameter is required to display a map. See
>> MapServer documentation
>> END
>>
>> LAYER
>> NAME 'geounits'
>> TYPE POLYGON
>> DATA 'C:\webgis\data\geomap_pubs\geomap12.shp'
>> METADATA
>> 'wms_title' 'geounits'
>> END
>> STATUS DEFAULT
>> TRANSPARENCY 100
>> PROJECTION
>> "init=epsg:26957"
>> END
>> CLASS
>> NAME 'geomap12'
>> STYLE
>> SYMBOL 0
>> SIZE 2
>> OUTLINECOLOR 0 0 0
>> COLOR 144 50 207
>> END
>> END END
>> END
>> ***** end of mapfile
>>
>> **************************************************
>> John Callahan, Geospatial Application Developer
>> Delaware Geological Survey, University of Delaware
>> URL: http://www.dgs.udel.edu
>> **************************************************
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list