Opened 19 years ago
Closed 17 years ago
#1347 closed enhancement (fixed)
WMS GetMap and SVG
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | Output-SVG | Version: | unspecified |
Severity: | minor | Keywords: | |
Cc: | ivanopicco |
Description (last modified by )
Hi! Still workin' on get SVG map, I think it's stable enough to get support on WMS getmap method. I made a patch to do this: diff -Nru mapserver-4.6.0-beta1/mapoutput.c mapserver-4.6.0-beta2/mapoutput.c --- mapserver-4.6.0-beta1/mapoutput.c 2005-04-07 19:23:16.000000000 +0200 +++ mapserver-4.6.0-beta2/mapoutput.c 2005-05-11 11:36:25.000000000 +0200 @@ -927,7 +927,8 @@ if( j == mime_count && map->outputformatlist[i]->driver && (strncasecmp(map->outputformatlist[i]->driver, "GD/", 3)==0 || - strncasecmp(map->outputformatlist[i]->driver, "GDAL/", 5)==0)) + strncasecmp(map->outputformatlist[i]->driver, "GDAL/", 5)==0 || + strcasecmp(map->outputformatlist[i]->driver, "svg")==0)) mime_list[mime_count++] = map->outputformatlist[i]->mimetype; } diff -Nru mapserver-4.6.0-beta1/mapwms.c mapserver-4.6.0-beta2/mapwms.c --- mapserver-4.6.0-beta1/mapwms.c 2005-04-22 17:50:46.000000000 +0200 +++ mapserver-4.6.0-beta2/mapwms.c 2005-05-11 11:36:25.000000000 +0200 @@ -755,7 +755,8 @@ if( format == NULL || (strncasecmp(format->driver, "GD/", 3) != 0 && - strncasecmp(format->driver, "GDAL/", 4) != 0)) + strncasecmp(format->driver, "GDAL/", 4) != 0 && + strcasecmp(format->driver, "svg") != 0)) { msSetError(MS_IMGERR, "Unsupported output format (%s).", @@ -1783,6 +1784,7 @@ #ifdef USE_GD_WBMP "<WBMP />" #endif + "<SVG />" , NULL); msWMSPrintRequestCap(nVersion, "Capabilities", script_url_encoded, "<WMS_XML />", NULL); msWMSPrintRequestCap(nVersion, "FeatureInfo", script_url_encoded, "<MIME /><GML.1 />", NULL); I Hope it can be usefull. Nice day, Ivano
Attachments (1)
Change History (9)
comment:1 by , 19 years ago
dependson: | → 455 |
---|
comment:3 by , 17 years ago
Cc: | added |
---|
comment:4 by , 17 years ago
Milestone: | 4.8 release → FUTURE |
---|
comment:5 by , 17 years ago
Description: | modified (diff) |
---|
Assefa, this change seems very straightforward. Is it really all that's needed to allow SVG output via WMS? Do you think it would be safe to add this now (before 5.0-beta1)?
comment:6 by , 17 years ago
Hi all, I have renewed this bug simply to point out its presence. I think it can be done better if we could specify the image type supported by our WMS service, maybe with a "WMS_IMAGETYPE" metadata at MAP level in mapfile, something like this:
MAP
... SIZE 550 400 IMAGETYPE PNG24 IMAGECOLOR 255 255 255
WEB
METADATA
"WMS_TITLE" "Example" "WMS_ABSTRACT" "Example Example" "WMS_SRS" "epsg:26591 epsg:32632" "wms_extent" "1492364 4915081 1499498 4926079" "wms_imagetype" "PNG24 GIF SVG KML"
END
END
...
END
comment:7 by , 17 years ago
there is a ticket opened on the last comment http://trac.osgeo.org/mapserver/ticket/455
My intention is to add svg support for 5.0 and we could rvisit ticket 455 for better support with user control of wms output format
comment:8 by , 17 years ago
Milestone: | FUTURE → 5.0 release |
---|---|
Resolution: | → fixed |
Status: | new → closed |
SVG is now valid for wms getmap request r6418