Vector map’s basic objects: Vector map usually consists of 2 types of objects: render objects and routing objects. Render objects: Countries Cities/Provinces Points Polylines Polygons Here is the data structure model that you can use for your mobile map application: Data structure for Country: String name; int x; (Longitude (32bit)) int y; (Latitude (32bit)) short numPoint; (16bit) – follow by array of x and y different to define boundaries [...]
Continue reading...Wednesday, March 11, 2009
This note describes the technique and gives the solution to finding the shortest distance from a point to a line or line segment. The equation of a line defined through two points P1 (x1,y1) and P2 (x2,y2) is P = P1 + u (P2 - P1) The point P3 (x3,y3) is closest to the line at the [...]
Continue reading...
Monday, March 16, 2009
1 Comment