We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I have svg file with path ids (like id="some_string")
and running your tool with -d option gives me the following output:
{ {"type":"Feature", "properties":{ "svgID":"#[object Object]" /* <--- note object id! */ }, "geometry":{ _etc, the rest is ok_ ] }`
Note that path ids are #[object Object] instead of string ids. Bug? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
On closer inspection of source code, I found what the error is:
Line 273 of svg2geojson.js
should read:
geo.coordinates.debugId = (el.$ && el.$.id) ? `${el.$.id.value}` : fallback;
instead of
geo.coordinates.debugId = (el.$ && el.$.id) ? `#${el.$.id}` : fallback;
Note the added .value property of id object, which is the actual string containing the svg elements' id attribute.
Sorry, something went wrong.
Hi @Phrogz, Thank you for this nice lib! Do you think this issue could be solved any time soon? It seems to be a very easy fix :) Thank you!
No branches or pull requests
Hi. I have svg file with path ids (like id="some_string")
and running your tool with -d option gives me the following output:
Note that path ids are #[object Object] instead of string ids.
Bug? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: