Ticket #668 (closed defect: worksforme)
Mapscript generates URL with invalid SLD_BODY
| Reported by: | bartvde@… | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | MapScript-PHP | Version: | 4.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When having the following LAYER (template values are filled in by Chameleon
application):
LAYER
CONNECTION "http://www.vz.geodan.nl:1112/cgi-bin/mapserv_42.exe?
map=c:/ms4w_20/apps/nisprestatie/map/nisprestatie_server.map"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:28992"
"wms_onlineresource" "http://www.vz.geodan.nl:1112/cgi-
bin/mapserv_42.exe?
map=c:/ms4w_20/apps/nisprestatie/map/nisprestatie_server.map&"
"wms_name" "template"
"wms_title" "template"
"wms_server_version" "1.1.0"
"wms_formatlist" "image/gif image/png image/jpeg image/wbmp
application/x-shockwave-flash text/html application/x-pdf image/tiff"
"wms_format" "image/png"
"wms_boundingbox" "EPSG:28992 10000 305000 280000 619000"
"wms_queriable" "1"
"wms_latlonboundingbox" "-173.433 41.4271 -13.0481 83.7466"
# MUST HAVE THIS TO SUPPORT selection highlighting
"wms_sld_body" "AUTO"
END
NAME "template"
PROJECTION
"init=epsg:28992"
END
SIZEUNITS PIXELS
STATUS ON
DUMP TRUE
TEMPLATE "blank.html"
TOLERANCE 0
TOLERANCEUNITS PIXELS
TYPE RASTER
UNITS METERS
CLASS
NAME "hilight"
SYMBOL 0
COLOR 0 255 0
END
END
a GetFeatureInfo request does not work on this LAYER as a URL is generated with
an invalid SLD_BODY which makes Mapserver CGI crash. Leaving out
the "wms_sld_body" "AUTO" part does not change the situation.
The SLD_BODY is:
<StyledLayerDescriptor version=\"1.0.0\" xmlns=\"http://www.opengis.net/sld\"
xmlns:gml=\"http://
www.opengis.net/gml\" xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:xlink=\"
http://www.w3.org/1999/xlink\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-
instance\"
xsi:schemaLocation=\"http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.
0.0/
StyledLayerDescriptor.xsd\">
</StyledLayerDescriptor>
Change History
Note: See
TracTickets for help on using
tickets.
