MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




QueryShape dont work as expected

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2005
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 3
QueryShape dont work as expected

Hi,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-21-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-21-2005
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 3
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

DistanceLongitude * Cosinus(Latitude);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
expected, queryshape, work


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 11:07 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54