Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
QuestionUndo And Select All Pin
Rahul DSG30-Aug-09 20:24
Rahul DSG30-Aug-09 20:24 
AnswerRe: Undo And Select All Pin
stancrm30-Aug-09 21:03
stancrm30-Aug-09 21:03 
GeneralRe: Undo And Select All Pin
Rahul DSG30-Aug-09 21:17
Rahul DSG30-Aug-09 21:17 
GeneralRe: Undo And Select All Pin
Rahul DSG30-Aug-09 21:37
Rahul DSG30-Aug-09 21:37 
QuestionConervsion formula for XY coordinates of Picture Box to Lat/Long Pin
kjsl2k930-Aug-09 19:13
kjsl2k930-Aug-09 19:13 
AnswerRe: Conervsion formula for XY coordinates of Picture Box to Lat/Long Pin
Abhishek Sur30-Aug-09 22:06
professionalAbhishek Sur30-Aug-09 22:06 
AnswerRe: Conervsion formula for XY coordinates of Picture Box to Lat/Long Pin
stancrm30-Aug-09 22:48
stancrm30-Aug-09 22:48 
GeneralRe: Conervsion formula for XY coordinates of Picture Box to Lat/Long Pin
kjsl2k931-Aug-09 1:09
kjsl2k931-Aug-09 1:09 
Hi,

I had used the formula for calculating the Lat and Long by first calculating the dX and dY and then applying the following formula : -

public point XYtoLatLong(float X, float Y)
{
float Lat = LAT0 + dY * Y ;
float Long = LONG0 + dX * X ;
point pnt = new point(X, Y, Lat, Long);
return pnt;
}

where X and Y are the points of the picture box where the mouse is moved , Lat0 and Long0 are calulated as : -


delX = (maxLONG().LONG - minLONG().LONG) / (maxLONG().X - minLONG().X);
delY = (minLAT().LAT - maxLAT().LAT) / (minLAT().Y - maxLAT().Y);

lat0 = maxLAT().LAT - maxLAT().Y * dY;
long0 = minLONG().LONG - minLONG().X * dX;

maxLat and maxLong are used for getting the maximum Lat and Long
but the Lat and Long I am getting is giving the error of -0.00478 in Lat and +0.00389 in Long.How can I remove the Error.

Thanks
QuestionHi peoples Pin
Hema Bairavan30-Aug-09 18:54
Hema Bairavan30-Aug-09 18:54 
AnswerRe: Hi peoples Pin
Mycroft Holmes30-Aug-09 19:43
professionalMycroft Holmes30-Aug-09 19:43 
QuestionUsingText File Pin
gamer112730-Aug-09 17:56
gamer112730-Aug-09 17:56 
AnswerRe: UsingText File Pin
PIEBALDconsult30-Aug-09 18:22
mvePIEBALDconsult30-Aug-09 18:22 
GeneralRe: UsingText File Pin
gamer112730-Aug-09 19:27
gamer112730-Aug-09 19:27 
AnswerRe: UsingText File Pin
Mycroft Holmes30-Aug-09 19:46
professionalMycroft Holmes30-Aug-09 19:46 
GeneralRe: UsingText File Pin
Luc Pattyn31-Aug-09 0:52
sitebuilderLuc Pattyn31-Aug-09 0:52 
AnswerRe: UsingText File Pin
Luc Pattyn31-Aug-09 0:54
sitebuilderLuc Pattyn31-Aug-09 0:54 
GeneralRe: UsingText File Pin
Richard MacCutchan31-Aug-09 9:51
mveRichard MacCutchan31-Aug-09 9:51 
GeneralRe: UsingText File Pin
Luc Pattyn31-Aug-09 11:04
sitebuilderLuc Pattyn31-Aug-09 11:04 
AnswerRe: UsingText File Pin
Richard MacCutchan31-Aug-09 23:04
mveRichard MacCutchan31-Aug-09 23:04 
AnswerRe: UsingText File Pin
Abdul Rahman Hamidy31-Aug-09 1:58
Abdul Rahman Hamidy31-Aug-09 1:58 
Questiondeployment Pin
Shuaib wasif khan30-Aug-09 14:33
Shuaib wasif khan30-Aug-09 14:33 
AnswerRe: deployment Pin
Not Active30-Aug-09 15:14
mentorNot Active30-Aug-09 15:14 
Questionabout gsm modem Pin
hamedkapak30-Aug-09 14:00
hamedkapak30-Aug-09 14:00 
AnswerRe: about gsm modem Pin
Luc Pattyn30-Aug-09 14:01
sitebuilderLuc Pattyn30-Aug-09 14:01 
JokeRe: about gsm modem Pin
Rajesh R Subramanian30-Aug-09 22:16
professionalRajesh R Subramanian30-Aug-09 22:16 

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.