MapPoint Functionality

ARPRINCE
12-22-2006, 11:58 AM
I don't know if I have the right thread forums but anyway, I have a question on MP functionality. I created territories via STATE (ex. TER1 = NJ and NY, TER2 = FL and PA, etc). I then plotted data (store information w/addresses) across the states using a push pin.

How can I pull out my store information based on Territory? Basically, I want to specify for example, "Give me all stores plotted that fall under TER1 (which is in NJ and NY)".

If this functionality feasible at all because I can't pull out that information.

Any info would be appreciated. Thanks

Paul Larson
12-22-2006, 01:58 PM
As you may have found, to the bane of all developers, there is no QueryTerritories() method in the API. :(

Fortunately for you, your territories are state-boundary based, and there are freely-available SHP files for state boundaries at the US Census site. You can use the MapPoint Spatial Data Import Utility to import the shape file, then use the MapPoint QueryShape() method to return all pushpins within a particular shape.

Links:

Spatial Data Import Utility:
Download details: MapPoint Spatial Data Import COM Add-in (http://www.microsoft.com/downloads/details.aspx?familyid=ada44a9e-3ee0-4fd7-a923-c900c6c9d5b7&displaylang=en)

Census Bureau State Boundary SHP file:
http://www.census.gov/geo/cob/bdy/st/st00shp/st99_d00_shp.zip


HTH
-Paul

 
Web mp2kmag.com
mapforums.com