I have a project where I would like to programmaticaly generate several different versions of a SVG which changes based on the url query parameters.
http://odin.himinbi.org/us_map/
When, on the command line, I get and error when I try to pass in query parameters, for example:
batik-rasterizer -d out.png file:labeled_USA_map.svg?show=VA
Error while converting files:
Error: invalid url (file:labeled_USA_map.svg?show=VA)
I really don't know what is going on because even after I create a file with the question mark in it:
ln -s labeled_USA_map.svg labeled_USA_map.svg?show=VA
All of these still fail:
batik-rasterizer -d lbl_test.png file:labeled_USA_map.svg?show=VA
batik-rasterizer -d lbl_test.png file:labeled_USA_map.svg\?show=VA
batik-rasterizer -d lbl_test.png file:labeled_USA_map.svg%3Fshow=VA
batik-rasterizer -d lbl_test.png 'file:labeled_USA_map.svg?show=VA'
I can use symlinks and more _javascript_ to get around this, but I am really curious if there is a method for passing in query parameters from the command line.
Will Holcomb
- query strings in file urls Will Holcomb
- Re: query strings in file urls thomas . deweese
- Re: query strings in file urls V. de Weger
- Re: query strings in file urls thomas . deweese
- Re: query strings in file urls V. de Weger
