creating own gps map in vc++
-
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
-
what is the map yo are using? please explain ur requirement in a bit more detail.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
the map which i am using is OPEN STEET MAP, i exported the map and want to have it in my application which reads the .gpx files.
sorry my friend, i really have no idea on the format, which you are using. here, in this thread, we were discussing on creating our own map format and our own map tool. to solve your, problem, you may have to go through the api provided by the map tool which you are using. first let me know, what tool you are using? good luck.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
sorry my friend, i really have no idea on the format, which you are using. here, in this thread, we were discussing on creating our own map format and our own map tool. to solve your, problem, you may have to go through the api provided by the map tool which you are using. first let me know, what tool you are using? good luck.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
its for my class project actually, language is vc++, open street map is a free map provider and i exported the map of our city as png image and converted it into bmp. I know the top left corner latitude , longitude value and bottom right corner latitude longitude value. we got some gpx files of my city and want to plot it in this map. here we stuck dont know wht to do next....
-
its for my class project actually, language is vc++, open street map is a free map provider and i exported the map of our city as png image and converted it into bmp. I know the top left corner latitude , longitude value and bottom right corner latitude longitude value. we got some gpx files of my city and want to plot it in this map. here we stuck dont know wht to do next....
did you try to open the gpx file in either notepad or vc++ binary editor and see the content? if yes, please let me know what it contains. then i can guide you.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
did you try to open the gpx file in either notepad or vc++ binary editor and see the content? if yes, please let me know what it contains. then i can guide you.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
hi, the gpx file contains latitude longitude value on every interval gpx xmlns="http://www.topografix.com/GPX/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creator="GPSBabel - http://www.gpsbabel.org" version="1.0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> 2009-02-18T17:00:44Z</time> <bounds maxlat="19.269332886" maxlon="73.329920769" minlat="18.897814751" minlon="72.809121609"/> <trk> <trkseg> <trkpt lat="19.044027329" lon="72.839784622"> <ele>0.000000</ele> </trkpt> <trkpt lat="19.044113159" lon="72.839999199"> <ele>0.000000</ele> <time>2007-02-26T20:15:01Z</time> </trkpt> <trkpt lat="19.044220447" lon="72.840363979"> <ele>0.000000</ele> i dont know wht it mean but we just need to plot the latitude and longitude only. :sigh:
-
hi, the gpx file contains latitude longitude value on every interval gpx xmlns="http://www.topografix.com/GPX/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creator="GPSBabel - http://www.gpsbabel.org" version="1.0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> 2009-02-18T17:00:44Z</time> <bounds maxlat="19.269332886" maxlon="73.329920769" minlat="18.897814751" minlon="72.809121609"/> <trk> <trkseg> <trkpt lat="19.044027329" lon="72.839784622"> <ele>0.000000</ele> </trkpt> <trkpt lat="19.044113159" lon="72.839999199"> <ele>0.000000</ele> <time>2007-02-26T20:15:01Z</time> </trkpt> <trkpt lat="19.044220447" lon="72.840363979"> <ele>0.000000</ele> i dont know wht it mean but we just need to plot the latitude and longitude only. :sigh:
1.does your map tool provide any api or function to plot a latitude or longitude? 2.are you displaying the map on the screen? if so, which control?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.