Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

QueryShape dont work as expected

This is a discussion on QueryShape dont work as expected within the MapPoint Desktop 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 ...

  1. #1
    Bed007 is offline 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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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

  3. #3
    Bed007 is offline 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

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VB6 error "Method 'QueryShape' of object 'DataSet' fail
    By David J in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-07-2005, 02:13 PM
  2. Problem with dataset.QueryShape Method
    By Ray Liu in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-15-2004, 11:55 AM
  3. cannot install mappoint over a network. i dont have a ntwrk!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-17-2004, 02:15 AM
  4. Huge memory leak in using QueryShape?
    By random0000 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-28-2003, 06:22 AM
  5. QueryShape problem Please help
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-13-2003, 09:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96