0

i have a Canvas where i get the position of the pixel when i draw. Example, X=1, Y=5. So, i have to project that on a real wall. I know the geography coordinate of each lower corner of the wall and the width and height as well.

How can i convert from cartesian coordinate to geography coordinate?

Thanks.

trusktr
  • 44,284
  • 53
  • 191
  • 263
  • Can you include and example of what you have and what you expect. – John Alexiou Sep 24 '12 at 13:03
  • Looking at your other questions, I'm beginning to get the feeling that question by question, we are doing your work. I think there is enough information on [this](http://stackoverflow.com/questions/12525516/knowing-a-geography-coordinate-nearby) question to also solve this one. – Rody Oldenhuis Sep 24 '12 at 14:46
  • Did you ever solve this problem? It depends on which coordinate system the "geography coordinates" are in. You may want to use Proj (aka Proj4) to convert from geography coordinate (of your format like lat/lon or something else) to ECEF, then from ECEF it should be fairly easy to make to screen space because ECEF is cartesian. See http://proj.org, http://proj4js.org, and http://github.com/pyproj4/pyproj. – trusktr Apr 10 '20 at 20:27

0 Answers0