Solved

Mapping Lattitude and Longitude positions on the screen C# 2005

Posted on 2008-06-17
2
237 Views
Last Modified: 2013-12-16
Does anyone know how to go about mapping Lattitude and Longitude positions on the screen like points on a graph?

Thanks!
0
Comment
Question by:Saxitalis
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
Comment Utility
first you have to convert lat/lon to unique values. If you have, by example:

12 deg 15 min 40 seg

you should convert to pure degrees, like:

puredeg = 12 + 15/60 + 40/3600

also, you have to be aware of the sign, I suggest negative values for north and west, for easy painting.
Once you have lat/long in pure degrees, you will need to scale those values for proper scaled paiting.
Now you can use these coordinates as screen coordinates
0
 

Author Closing Comment

by:Saxitalis
Comment Utility
perfect - thanks!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
visual Basic Net vs c# net 8 53
SQL Restore Script - Syntax Error 8 69
Round a string to two digits 12 23
String manipulation 15 49
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now