[Mapserver-users] crash using srs parameter in getmap request

bartvde at xs4all.nl bartvde at xs4all.nl
Fri Jun 11 16:02:09 EDT 2004


Hi John,

4.2 release binaries are available at Maptools.org. I would suggest to try
them out to see if the problem really disappeared.

http://www.maptools.org/dl/mapserver-4.2.0-win32-php4.3.4.zip

Best regards,
Bart

> Ed McNierney wrote:
>
>>Folks -
>>
>>What version of MapServer are you running when you get this crash?  My
>>memory is being fuzzy right now, but there was a bug quite a while ago
>>that had something to do with a buffer/pointer problem with SRS
>>parameters (I think).  I ran into it and Daniel fixed it - but it was
>>rather a long time ago.  If you're using an old version of MapServer,
>>try something newer.
>>
>>
>>
> Hi again,
>
> The crash 'succeeded' with MapServer version 4.2-beta2 on W2K (from
> http://160.94.77.165/ms42b2_gif_pg.zip). As far as I know, mapserver
> version 4.2 is only available as a beta, so after suggestions to upgrade
> to version 4.2, it seemed worth to try to build mapserver 4.2 on Linux.
> With this version the crash does NOT occur and the url returns an image
> with or without srs parameters for both desired projections.
> Question that remains is if the problem in beta2 occurred  because of
> the beta status or because of the windows version?
>
> John.
>
>>	- Ed
>>
>>Ed McNierney
>>President and Chief Mapmaker
>>TopoZone.com
>>-----Original Message-----
>>From: mapserver-users-admin at lists.gis.umn.edu
>>[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
>>craig.gould at bt.com
>>Sent: Thursday, June 10, 2004 9:17 AM
>>To: Tom.Kralidis at ec.gc.ca; john.pulles at geodan.nl;
>>mapserver-users at lists.gis.umn.edu
>>Subject: RE: [Mapserver-users] crash using srs parameter in getmap
>>request
>>
>>Tom,
>>
>>If John's crash is anything like the crash I experienced then it is the
>>actual mapserv process on the machine that crashes with a null pointer
>>exception somewhere.
>>
>>This crash only happens with certain types of projections. I was using
>>British National Grid (BNG). The native projection of the WMS server was
>>BNG, and the native projection of the WMS client was BNG. However if I
>>include the SRS parameter then the map server process on the WMS server
>>crashed (however not if you used a browser and did a standard request).
>>If I took out the SRS parameter via a redirecting page the process did
>>not crash.
>>
>>Upper and lower case made no difference for me. The application still
>>crashed.
>>
>>BTW, when I found this problem I posted it on this list, but got no
>>answer back. Since then at least two other people have posted similar
>>problems. Each time I've let them know how I got round the problem.
>>Unfortunately I can't get seem to get map server to compile on my win
>>machine so I can't look into where this may be happening.
>>
>>Craig.
>>
>>
>>
>>
>>-----Original Message-----
>>From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca]
>>Sent: 10 June 2004 14:04
>>To: Gould,CR,Craig,XGH6A C; john.pulles at geodan.nl;
>>mapserver-users at lists.gis.umn.edu
>>Subject: RE: [Mapserver-users] crash using srs parameter in getmap
>>request
>>
>>
>>
>>Comments:
>>
>
>>- What do you mean by MapServer crashing?  Are you getting a 500 error?
>>Are you getting an OGC Service Exception Report XML document?
>>- What is the *native* projection of the data?  This is what should be
>>declared in the PROJECTION block foreach layer
>>- try your "wms_srs" declaration with lowercase (i.e. "init=epsg:28992")
>>- trying a WMS GetMap request without the SRS keyword is an invalid
>>request, and should throw an exception
>>- WMS is not the problem.  A WMS shall support all SRS projections it
>>advertises in Capabilities
>>
>>..Tom
>>
>>=========================
>>Tom Kralidis
>>Systems Scientist
>>Environment Canada
>>Tel: +01-905-336-4409
>>http://www.ec.gc.ca/
>>
>>
>>
>>
>>
>>>-----Original Message-----
>>>From: mapserver-users-admin at lists.gis.umn.edu
>>>[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
>>>craig.gould at bt.com
>>>Sent: Thursday, June 10, 2004 7:33 AM
>>>To: john.pulles at geodan.nl; mapserver-users at lists.gis.umn.edu
>>>Subject: RE: [Mapserver-users] crash using srs parameter in
>>>getmap request
>>>
>>>
>>>John,
>>>I and a few others have found the same problem.
>>>The way round it is to create a web page that is called
>>>instead of the opengis mapserver. This page forwards the
>>>request to the mapserver but strips out the SRS paramater. If
>>>the map server is using the projection you want returned by
>>>default, then everything ends up OK. BTW this only happens
>>>with certain projection types. Regards, Craig.
>>>
>>>
>>>-----Original Message-----
>>>From: mapserver-users-admin at lists.gis.umn.edu
>>>[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
>>>John Pulles
>>>Sent: 10 June 2004 10:28
>>>To: mapserver-users at lists.gis.umn.edu
>>>Subject: [Mapserver-users] crash using srs parameter in getmap request
>>>
>>>
>>>Hi List
>>>
>>>Using a map file with projection settings as shown below, I
>>>get a crash of mapserver when doing an opengis getmap request
>>>with &srs=epsg:28992. With an absent srs parameter or with
>>>&srs=epsg:4326 a correct map is returned. Does anyone have an
>>>idea what could be wrong?
>>>
>>>BTW: I am using MapServer version 4.2-beta2 on W2K, with the
>>>PROJ_LIB environment variable set to the directory containing
>>>the epsg file.
>>>
>>>
>>>Regards,
>>>John Pulles.
>>>
>>>MAP
>>>    NAME "Demo"
>>>
>>>    PROJECTION
>>>        # RD
>>>        "init=EPSG:28992"
>>>    END
>>>
>>>    EXTENT 10000 305000 280000 619000
>>>
>>>    SHAPEPATH "c:\kaarten"
>>>    UNITS meters
>>>
>>>    WEB
>>>        METADATA
>>>            "wms_title"         "Demo"
>>>            "wms_srs"	        "EPSG:4326 EPSG:28992"
>>>        END
>>>    END
>>>
>>>    LAYER
>>>        NAME provincies
>>>        DATA "provincies"
>>>        STATUS ON
>>>        METADATA
>>>            "wms_title"         "Provincies"
>>>            "wms_srs"	        "EPSG:4326 EPSG:28992"
>>>        END
>>>        TYPE POLYGON
>>>        CLASS
>>>            COLOR 212 212 212
>>>            OUTLINECOLOR   0
>>>        END
>>>        PROJECTION
>>>            # RD
>>>            "init=EPSG:28992"
>>>        END
>>>    END
>>>END
>>>
>>>--------------------
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
>>>
>>>
>>>_______________________________________________
>>>
>>>Mapserver-users mailing list
>>>Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
>>>
>>>
>>>
>>
>>_______________________________________________
>>Mapserver-users mailing list
>>Mapserver-users at lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>>
>>
>>
>>
>
>
> --
>
> -------------------------------------
> Geodan IT b.v.
> Buitenhaven 27-A
> 5211 TP 's-Hertogenbosch (NL)
> -------------------------------------
> Tel: +31 (0)73 - 692 5151
> Fax:  +31 (0)73 - 692 5150
> Mobiel: +(0)6 - 1234 5678
> -------------------------------------
> Postadres / mailing address
> President Kennedylaan 1
> 1079 MB Amsterdam (NL)
> -------------------------------------
> E-mail: john.pulles at geodan.nl
> Website: http://www.geodan.nl
> Disclaimer: http://www.geodan.nl/disclaimer
> -------------------------------------
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users






More information about the mapserver-users mailing list