MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Programmatically selecting Unmatched results?

This is a discussion on Programmatically selecting Unmatched results? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I often need to import thousands of records (constantly changing data) into a map. I usually have a hit rate ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2005
Junior Member
White Belt
 
Join Date: Aug 2003
Posts: 9
Programmatically selecting Unmatched results?

I often need to import thousands of records (constantly changing data) into a map. I usually have a hit rate of about 95% or so, but that still leaves ~500 unmatched records per 10,000 database records!

I'm working through this in VB6, and have much of it working, EXCEPT the part about handling the unamtched records. My questions are,

1. can I get a subset of the entire dataset that was imported, but only the unmatched records? How is this done?

2. I'd like to do some SIMPLE comparisons (in code) to see if the street/city/state/zip match up. If so, I'd like to stick a pushpin there anyway.

3. For items that do not match up the street/city/state/zip, I would typically just match the last item in the "Potential Locations" dialog if I were doing this through Mappoint's interface. This turns out to the the ZIP code only match, which is OK as a last resort. Any thought on this?

Thanks in advance,
Mike
__________________
Mike Schoonmaker
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 01-18-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi Mike,

1. Dont know, sorry
2, 3. If your question was 'is this good idea', then my answer is Yes ! if you wanted some example code then please repost

Still a note for the pushpin. Be aware that this is terribely slow, so if you have many records (10000) you need a supercomputer or soon a psycho
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 01-18-2005
Junior Member
White Belt
 
Join Date: Aug 2003
Posts: 9
re: q's 2 & 3, yes I was looking for some sample code that might get close to this (sorry for not being clear).
__________________
Mike Schoonmaker
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 01-20-2005
Junior Member
Yellow Belt
 
Join Date: Nov 2004
Posts: 13
One option is to spin through the recordset and look at the IsMatched property of each record
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-20-2005
Junior Member
White Belt
 
Join Date: Aug 2003
Posts: 9
Yes, that would be one choice (however inefficient). Seems like there should be a FILTER property that could get set on the recordset to obtain ALL records that were not matched.
__________________
Mike Schoonmaker
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-21-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

Quote:
Originally Posted by mschoonmaker
Yes, that would be one choice (however inefficient).
Unless you do that when adding the records one by one and then check the property. Not sure but I dont think you loose much cpu time.

Filters ofthen do the same. When set they walk trough each record to check if it is valid.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 01-21-2005
Junior Member
White Belt
 
Join Date: Aug 2003
Posts: 9
So you think adding records one by one is as efficient as a ImportData() method? Surprising.
__________________
Mike Schoonmaker
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 01-21-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

I'm definitively not sure, but it is wodth to try it in a small separate test case. Could be that there is almost no difference, depending on how it is internally constructed.
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


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
Unmatched records fletch MapPoint 2006/2009 Discussion 0 03-09-2005 09:24 AM
Selecting Shape Based on Name Anonymous MapPoint 2006/2009 Discussion 1 09-07-2004 10:01 AM
Matching unmatched items after import into VB6 app abaker MapPoint 2006/2009 Discussion 3 01-20-2004 07:39 AM
export unmatched records Anonymous MapPoint 2006/2009 Discussion 1 03-17-2003 01:51 PM
Selecting pushpins within a shape Anonymous MapPoint 2006/2009 Discussion 1 09-26-2002 08:11 AM


All times are GMT -5. The time now is 02:38 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

Flights to Dubrovnik
Book cheap flights to Dubrovnik online at Holiday Hypermarket. Don't miss out on a fantastic holiday for fantastic value. Book soon!

Travelcounselors
TravelCounsellors are a Queens award winning Travel Agent. Have a personal Travel Counselor help with your travel plans.

Canada Flights
Canada flights are great value flights when you visit dealchecker.co.uk first. Full of surprises, Canada is simply the most astonishingly beautiful country in the world.

Holidays to Antigua
The Holiday Place has fantastic deals on holidays to Antigua. Visit our website to view special offers on holidays to the Caribbean.

Cheap Holidays
Hunting for cheap holidays? Well save time by booking online with ulookubook.com and you can even check out our top tips to help you hunt down a bargain holiday.

Cheap Holidays
Looking for holidays that are cheap, but still what you want? Visit Travel.co.uk.

Cheap Holidays to Sharm el Sheikh
Break away to Northern Africa. Find cheap holidays to Sharm el Sheikh at On The Beach.


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