-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
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
orientation issue #1
Comments
Confirmed. When I wrote this I knew that I was making an assumption that SVG Y axis was aligned with north up. This is what the cryptic second bullet point in the TODO section of the readme refers to. How important is this to you? Would entering four registration points work for you? |
I was able to get what I needed by hacking in my own converter. Not a rush, but for my use case the best solution is using my own coordinate converter. If there was a way to pass that in I would be golden. Thanks! |
To be clear, the sort of converter you're taking about is supplying a custom function that is supplied an SVG coordinate pair, and you return a GPS long/lat pair? That's a moderately simple change that is be happy to add as an option on the library side. I'll also consider if there's a reasonable way to make that happen using the command-line converter. |
I am having similar issues regarding orientation. Can you guide as to what I can do solve this or some example of convertor that solves this? |
@Aditya-Sh Can you please be very clear about what your situation is? I'd be happy to help with a solution, but I want to ensure that I'm satisfying the need correctly. |
Thanks for the details. You're not doing anything wrong. I just have not implemented any feature to allow rotation. Which of the following options would you prefer?
|
BTW, after I made my graphics I realize that they don't really match your specific situation, since you actually want your buildings to rotate counter-clockwise, and the graphics for 1 and 2 would end up rotating the other way. |
Hi Phrogz, Aditya and I are looking at this issue together and I was thinking which option is better to handle any common projection we use for conversion. |
The top of the SVG I am converting is oriented just west of north. When converted with svg2geojson it scales and centers the image correctly but it ends up rotated and mirrored. The bounding rect of my SVG ends up oriented perfectly north-south / east-west in the geojson.
test.svg.txt
test.geojson.txt
The text was updated successfully, but these errors were encountered: