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 3 of 3

Creating Shapes and finding point within

This is a discussion on Creating Shapes and finding point within within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I am working on a project to determin if a lat/lon is located within a specific area. I want ...

  1. #1
    therbert is offline Junior Member White Belt
    Join Date
    Dec 2007
    Posts
    1

    Creating Shapes and finding point within

    Hello,

    I am working on a project to determin if a lat/lon is located within a specific area. I want to draw the shapes using streets references. Anyone have some examples of this.

    Thanks

    Tom

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

    Re: Creating Shapes and finding point within

    Hi,

    You can use QueryShape method. You can also calculate yourself if the point is within an area. I have written an article for it on this forum. cannot find the URL direcly. try a search on 'point in polygon'.

  3. #3
    tfmiltz is offline Member Green Belt
    Join Date
    Feb 2005
    Posts
    52

    Re: Creating Shapes and finding point within

    I noticed you stated you want to draw the 'shapes' by 'street location'.

    This sounds like you might want a custom polygon, MapPoint has two basic categories for representing an area, 'Autoshapes' or 'Polyline' for custom polygons.

    If you are seeking 123 ABC street to 231 CBA street, to 312 ACB street to 312 CBA street to 123 BCA street for example as a 5 pt custom shape, and want to find lat/lon within that poly ?

    You will want to use QueryPolygon.

    I just went through all this in the last few months and I have it pretty well down. MapPoint is actually pretty powerful once you figure out point in poly. After coming from ESRI MapObjects, and for the price ? sheesh, bottom line MS isn't marketing MP right for GIS automation solutions if you ask me, because it's a fine app. Heh, I oughta switch from MP Developer to MP Marketer heh, this board though, between Eric, Wilfried and some regulars brings 1/2 the value to MapPoint if you ask me.

    Let me know if you have any questions on 40,000 foot view understanding of how to do this, it can be a bit of some detective work at first, but it's all very simple in retrospect.

    Basically, once you have your custom polygon shape Shape type GeoFreeForm iirc (5), you simply call your QueryPolygon method and pass it your shape, a recordset is returned, from there you can shove that back into a DB if you want and perform a an intermediate SQL query on that new set.

    Tim Miltz
    Current Whereabouts: Somewhere in deep black space, questioning where is the center of an infinite modelled universe, whether it's anywhere, everywhere, or no where, or a malformed model.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding populations
    By donnagreek in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 02-20-2009, 09:48 AM
  2. Creating an MST that does a Map Point 2002 Full Install?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-19-2003, 11:35 AM
  3. Finding the Starting Point of a Route
    By Anonymous in forum MP2K Magazine Articles
    Replies: 9
    Last Post: 10-14-2003, 09:43 PM
  4. Finding Area of a circle for Shapes.AddShape geoShapeRadius
    By spideybud in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-16-2003, 07:55 AM
  5. finding a pushpin from a .dll
    By blackmap in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-10-2003, 02:11 PM

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