Jump to content

LAT/LONG to planar map?


Recommended Posts

Hi

First of all sorry for my english.It is my second language .My question is I have been following a tutorial of  Stefan Sietzen .he convert the lat/long data on a sphere with this formula 

float x = cos(radians(@lat)) * cos(radians(@long)) * 1;
float y = cos(radians(@lat)) * sin(radians(@long)) * 1;
float z = sin(radians(@lat)) * 1;

@P = set(x,y,z);

 

I tried to project it into 2D plane and connect $MAPU, $MAPV data to $P .But my map is divided from wrong place.The part America supposed to be divided in the middle.My question is is there any better way to convert lat/long data into point position on a 2D map.

Any help is appreciated.Thanks in advance.

LatLong.jpg

Link to comment
Share on other sites

Thank you f1480187I am grateful for your answer. But clearly I am not as good as you think I am.I tried to put this wrangle before lat/long conversion.Also after conversion.But I guess I missed sth. here.And probably sth. very basic.I tried a couple of ways and still nothing.Do you mind showing this on scene file.Here is my scene.

 

LongLat_Test_027.rar

Edited by duveil
wrongNaming
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...