creating own gps map in vc++
-
9104890 and 19911100.7 9069257 and 19945768
plz verify them that .7 is not supposed to come. and also write a function which will convert ge format to int(pix) format.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
plz verify them that .7 is not supposed to come. and also write a function which will convert ge format to int(pix) format.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
sorry the value is 19911107. function to convert ge format? u mean radian to degree format? if so then ok. done
-
sorry the value is 19911107. function to convert ge format? u mean radian to degree format? if so then ok. done
sorry degree to radian
-
sorry degree to radian
no man, some function like int ConvertGratitoPix(int d,int m,int s,int sf) { return d*60*60*100+m*60*100+s*100+sf; } here graticule in general means latitude and/or longitude. pix refers to an integer.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
no man, some function like int ConvertGratitoPix(int d,int m,int s,int sf) { return d*60*60*100+m*60*100+s*100+sf; } here graticule in general means latitude and/or longitude. pix refers to an integer.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
ok done
-
sorry degree to radian
so, your towns bounds are as follows. top-9104890 and left-19911107 bottom-9069257 and right-19945768 now, the width of your town is 19945768-19911107=34661 and height is 9069257-9104890 =-35633 temporarily we will ignore the - sign for height. theresult would be reversed display of the map. we will correct at the end. finally, width=34661 and height=35633 did you understand till here. if so i shall proceed further otherwise ask ur doubt. be quick.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
so, your towns bounds are as follows. top-9104890 and left-19911107 bottom-9069257 and right-19945768 now, the width of your town is 19945768-19911107=34661 and height is 9069257-9104890 =-35633 temporarily we will ignore the - sign for height. theresult would be reversed display of the map. we will correct at the end. finally, width=34661 and height=35633 did you understand till here. if so i shall proceed further otherwise ask ur doubt. be quick.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
yes
-
yes
good. now width=34661 and height=35633 it is evident that, if we draw the abovepattern, it will be a rectangle, not a square.for our convinience we want to make it a square. so out of width and height, which is more? obviously height. so we will subtract height-width=35633-34661 =972. means width is 972 units less than height. so if we adjust 972/2 units to the left and 972/2 units to the right of our original rectangle, then it would become a square. now, i want you to explain those caluculations for me. do it fast.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
good. now width=34661 and height=35633 it is evident that, if we draw the abovepattern, it will be a rectangle, not a square.for our convinience we want to make it a square. so out of width and height, which is more? obviously height. so we will subtract height-width=35633-34661 =972. means width is 972 units less than height. so if we adjust 972/2 units to the left and 972/2 units to the right of our original rectangle, then it would become a square. now, i want you to explain those caluculations for me. do it fast.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
what happened are you there? make a habbit of acknowleding my post after you read it. later you can edit it with your comments. i should atleast know weather u r on this job or some thing else?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
modified on Friday, June 19, 2009 7:51 AM
-
good. now width=34661 and height=35633 it is evident that, if we draw the abovepattern, it will be a rectangle, not a square.for our convinience we want to make it a square. so out of width and height, which is more? obviously height. so we will subtract height-width=35633-34661 =972. means width is 972 units less than height. so if we adjust 972/2 units to the left and 972/2 units to the right of our original rectangle, then it would become a square. now, i want you to explain those caluculations for me. do it fast.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
ok so wht i understand is the scaling of image inorder to fit it as square.. in programming it is mapping..
-
ok so wht i understand is the scaling of image inorder to fit it as square.. in programming it is mapping..
perfect so can you caluculate the left,top,right and bottom of your town in terms of pix data such that it will be a square? be fast. ive got to leave for the day.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
perfect so can you caluculate the left,top,right and bottom of your town in terms of pix data such that it will be a square? be fast. ive got to leave for the day.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
yes i can..ok if its the time for u to leave thn we will continue the class on monday.. thankyou verymuch
-
yes i can..ok if its the time for u to leave thn we will continue the class on monday.. thankyou verymuch
-
19910639,9104890 19946236,9069257 this would be your town bounds.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
ok thn
-
ok thn
now, what is themaximum size of a square that you can draw on your screen? that will be your drawing area of the map.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
now, what is themaximum size of a square that you can draw on your screen? that will be your drawing area of the map.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
any size ..ok let it b (2.5,2.5,0)
-
now, what is themaximum size of a square that you can draw on your screen? that will be your drawing area of the map.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
bye for today. try to map the bounds of the town to the bounds of the rectangle on your screen. then take the digital data that is set of longitudes and latitudes from ge for some of the roads, i mean take a sample at each road turning, put them sequentially in a file, convert them into pix data, scale them to the square on your screen, plot lines from one point to other. now u will see the map that u have extracted from ge. now you should be able to plot the value you have received from ur usb gps device. all the best bye.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
any size ..ok let it b (2.5,2.5,0)
-
bye for today. try to map the bounds of the town to the bounds of the rectangle on your screen. then take the digital data that is set of longitudes and latitudes from ge for some of the roads, i mean take a sample at each road turning, put them sequentially in a file, convert them into pix data, scale them to the square on your screen, plot lines from one point to other. now u will see the map that u have extracted from ge. now you should be able to plot the value you have received from ur usb gps device. all the best bye.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
bye i will b back on monday only..thanku
-
bye i will b back on monday only..thanku