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
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 ...
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
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'.
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)