Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do i establish a ADO.NET application without installing SqlServer in client side. Pin
Richard MacCutchan15-Apr-16 22:42
mveRichard MacCutchan15-Apr-16 22:42 
GeneralRe: How do i establish a ADO.NET application without installing SqlServer in client side. Pin
Dave Kreskowiak16-Apr-16 3:07
mveDave Kreskowiak16-Apr-16 3:07 
AnswerRe: How do i establish a ADO.NET application without installing SqlServer in client side. Pin
Pete O'Hanlon16-Apr-16 2:08
mvePete O'Hanlon16-Apr-16 2:08 
QuestionHow to covert longitude and latitude to x and y values for state plane coordinate systems Pin
Member 1234906415-Apr-16 10:55
Member 1234906415-Apr-16 10:55 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
Sascha Lefèvre15-Apr-16 11:40
professionalSascha Lefèvre15-Apr-16 11:40 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
M Sukhdeep15-Apr-16 13:35
M Sukhdeep15-Apr-16 13:35 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
Patrice T15-Apr-16 19:34
mvePatrice T15-Apr-16 19:34 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
V.16-Apr-16 5:06
professionalV.16-Apr-16 5:06 
You mean you want the x, y pixel coordinate?

That should be simple math.
  1. Remember that your "map image" has a x,y coordinate of 0,0 in the top, left and the max_x, max_y on the bottom, right (AKA the Y-axis points down!). The max_x and max_y coordinate is the width and heiht of your bitmap respectively.
  2. Look up the coordinate of the top left corner. That is equal to the 0,0 x,y coordinate. Same for the bottom right.
  3. From that point, it is just converting the coordinate system to the x,y coordinate system. It is easier to treat the degrees/minutes/seconds as a double variable, but you should find it on google easily to convert from one format to the other. I would recommend the "rule of three" to calculate the x,y or the degrees (depending on your needs):
    77 degrees = 100 pixels //in this example : the difference between the left and the right for the horizontal values
    0,77 degrees = 1 pixel
    28,49 degrees = 37 pixels (for example)
    so if you start out left with let's say 25 degrees, moving 37 pixels adds 28,49 degrees.
    //you do the same for y coordinate
I hope that was of some help (and that was indeed your question)
V.
(MQOTD rules and previous solutions)

QuestionRead specific bytes continually from a file Pin
Tirumaleswara Reddy.K15-Apr-16 1:33
Tirumaleswara Reddy.K15-Apr-16 1:33 
AnswerRe: Read specific bytes continually from a file Pin
Richard MacCutchan15-Apr-16 1:53
mveRichard MacCutchan15-Apr-16 1:53 
AnswerRe: Read specific bytes continually from a file Pin
Pete O'Hanlon15-Apr-16 2:18
mvePete O'Hanlon15-Apr-16 2:18 
GeneralRe: Read specific bytes continually from a file Pin
Mycroft Holmes15-Apr-16 15:02
professionalMycroft Holmes15-Apr-16 15:02 
GeneralRe: Read specific bytes continually from a file Pin
Patrice T15-Apr-16 19:52
mvePatrice T15-Apr-16 19:52 
GeneralRe: Read specific bytes continually from a file Pin
Pete O'Hanlon16-Apr-16 2:09
mvePete O'Hanlon16-Apr-16 2:09 
AnswerRe: Read specific bytes continually from a file Pin
leon de boer15-Apr-16 15:46
leon de boer15-Apr-16 15:46 
AnswerRe: Read specific bytes continually from a file Pin
Patrice T15-Apr-16 20:04
mvePatrice T15-Apr-16 20:04 
QuestionInitiate properties at the creation of the object. Pin
Gilbert Consellado15-Apr-16 0:14
professionalGilbert Consellado15-Apr-16 0:14 
AnswerRe: Initiate properties at the creation of the object. Pin
Pete O'Hanlon15-Apr-16 0:36
mvePete O'Hanlon15-Apr-16 0:36 
QuestionJenkins (+MSBuild) not building my .specs dll (just building the start up project) Pin
Alaric_14-Apr-16 10:19
professionalAlaric_14-Apr-16 10:19 
AnswerRe: Jenkins (+MSBuild) not building my .specs dll (just building the start up project) Pin
Alaric_14-Apr-16 11:02
professionalAlaric_14-Apr-16 11:02 
GeneralHow to kill app that has the same name as the current one? Pin
Nemo196614-Apr-16 8:09
Nemo196614-Apr-16 8:09 
GeneralRe: How to kill app that has the same name as the current one? Pin
Eddy Vluggen14-Apr-16 8:22
professionalEddy Vluggen14-Apr-16 8:22 
GeneralRe: How to kill app that has the same name as the current one? Pin
Dave Kreskowiak14-Apr-16 8:23
mveDave Kreskowiak14-Apr-16 8:23 
GeneralRe: How to kill app that has the same name as the current one? Pin
OriginalGriff14-Apr-16 8:35
mveOriginalGriff14-Apr-16 8:35 
GeneralRe: How to kill app that has the same name as the current one? Pin
Nemo196614-Apr-16 8:59
Nemo196614-Apr-16 8:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.