Community of VE/MapPoint Users and Developers
This is a discussion on QueryShape dont work as expected within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I have a problem with QueryShape (in C#). What I do is that I add some shapes to a ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| QueryShape dont work as expected I have a problem with QueryShape (in C#). What I do is that I add some shapes to a new map. Those shapes are use to detect whether or not a vehicle is entering a zone (using GPS coordinates). When I receive a coord from the vehicle, I add a pushpin and call QueryShape on the "My Pushpins" dataset with each shapes. When there is a pushpin inside a shape, the recordset is empty. It looks like it is because the shapes are added BEFORE the pushpin. When I add a pushpin and THEN I add the shapes, it works. But I don't want to erase and re-add shapes every time I get a new vehicle position!! Does anyone have any idea on that problem ? Jean Bédard, Ing jr. Kolombo Technologies Québec, QC, Canada |
| |||
|
Hi, While there is maybe a workaround for your prblem, I should calculate myself wheter the vehicle is in the area or not. Probably mutch faster and you have control yourself. If the area's are circular or rectangle it is very easy, if it is irregular shape somewhat more difficult
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Calculating distances
Calculating latitude distances is easy as we can approx 1 degree of latitude to be 111.325 km. But calculating longitude distances depends on the latitude and can change from 111.325 km (at equator) to 0 km at north and south poles. How to approximate longitudes distances ??
__________________ Jean Bédard, Ing jr Kolombo Technologies |
| |||
|
Hi, DistanceLongitude * Cosinus(Latitude);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| expected, queryshape, work |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VB6 error "Method 'QueryShape' of object 'DataSet' fail | David J | MapPoint 2006/2009 Discussion | 2 | 12-07-2005 02:13 PM |
| Problem with dataset.QueryShape Method | Ray Liu | MapPoint 2006/2009 Discussion | 1 | 07-15-2004 11:55 AM |
| cannot install mappoint over a network. i dont have a ntwrk! | Anonymous | MapPoint 2006/2009 Discussion | 2 | 03-17-2004 02:15 AM |
| Huge memory leak in using QueryShape? | random0000 | MapPoint 2006/2009 Discussion | 2 | 03-28-2003 06:22 AM |
| QueryShape problem Please help | Anonymous | MapPoint 2006/2009 Discussion | 2 | 03-13-2003 09:57 AM |