Skip to main content

I am trying to configure a FeatureReader to use WMS to request a map in the SVG format (image/svg+xml). I have two options with respect to the output format (jpeg and png) but using the "Open text editor..." functionality I can input the image/svg+xml my self. It fails when I run the workspace and according to the translation log the FeatureReader probably doesn't recognise the format and defaults back to PNG.

 

Even though I have thought of WMS as always returning a raster image, https://en.wikipedia.org/wiki/Web_Map_Service describes it as also being able to return SVG and WebCGM. I haven't browsed through the WMS specification though.

 

I have found this idea https://community.safe.com/s/idea/0874Q000000TlLiQAK/detail which ask for the option to read a plain SVG file so I guess reading SVG is outside the scope of FME so far (even though writing SVG should be available)?

Just in case you're not aware - You first need to check what formats are supported by the WMS service - this is found in the GetCapabilities document - FME will automatically check which formats are supported based on the GetCapabilities document of the service.

You should see the link to the GetCapabilities document in the FME log. But yes, in addition FME needs to support reading the SVG files which I don't think it does currently. So doesn't seem like it's really an option :-/


Just in case you're not aware - You first need to check what formats are supported by the WMS service - this is found in the GetCapabilities document - FME will automatically check which formats are supported based on the GetCapabilities document of the service.

You should see the link to the GetCapabilities document in the FME log. But yes, in addition FME needs to support reading the SVG files which I don't think it does currently. So doesn't seem like it's really an option :-/

There is an SVGReader custom transformer, using ImageMagick in the background that might prove useful there.


Just in case you're not aware - You first need to check what formats are supported by the WMS service - this is found in the GetCapabilities document - FME will automatically check which formats are supported based on the GetCapabilities document of the service.

You should see the link to the GetCapabilities document in the FME log. But yes, in addition FME needs to support reading the SVG files which I don't think it does currently. So doesn't seem like it's really an option :-/

@virtualcitymatt​, the WMS service is a MapServer which returns fine SVG's when requested from browsers and QGIS.


There is an SVGReader custom transformer, using ImageMagick in the background that might prove useful there.

@Hans van der Maarel​ my testing is more of "Is FME capable of..." - not what can I possible use of workarounds to get SVG into FME. Nevertheless thanks for your suggestion :)


Reply