MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Adding data and displaying territorries

This is a discussion on Adding data and displaying territorries within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm just starting with MapPoint 2004 and now using it as ActiveX Control in C#. I browsed a lot ...


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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 5
Adding data and displaying territorries

Hi, I'm just starting with MapPoint 2004 and now using it as ActiveX Control in C#.
I browsed a lot of articles and newsgroups but I did not find a simple guideline how to do this by COM:
Add some data (two fields: ZIP-Code, income), display it in zip-code regions and color the regions depending on the income.
Does anybody have an example ? (the progr. language doesnīt matter, the COM methods and fields will be the same).
Thanks in advance,
Friedhelm
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 07-04-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

This question has comed up here already. Try to do a search on "income" on this forum, chance is high you find already what you look for.
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 07-04-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 5
Hi, I did a search on "income", but the there is nothing that points into my direction. I found some articles, in all of them data is imported from xls or whatever .What I want to do is adding the data by COM. There is a great object model, but what to use - DataSet, DataMap, DataFields. All explained detailled in msdn, but I donīt find a bundled example.
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 07-09-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

Ok, but I do not exacly understeand then what you wants to do. Can you explain more ? I understeand you want to add something to a dataset but do not understeand how.. waht..
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 07-10-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 5
OK, let me try..

I want to add 10 pairs of data, 1st column is a zip code (or zip area) , the 2nd is an integer value. I want to display the 10 locations as shaded areas and the integer value determines the color of the area.
I can do all this easily in the mappoint GUI with the wizards, but I want to do this by using the COM interface from my app. I managed to read the data from xls files, but tha is not want I want to do.

Thanks in advance,
Friedhelm
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 07-11-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi Friedhelm,

I never used them, but have a look at ImportData or DisplayDataMap methods (one of them shure will do what you wants to do).
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 07-11-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 5
Hi,
I managed to import data from xls using
MapPoint.DataSet set1 = map.DataSets.ImportData(...)

After that, I display this set using

Code:
DataMap dataMap = set1.DisplayDataMap(...).
That works. I want to create the DataSet manually. Creating the dataset is easy

Code:
MapPoint.DataSet set2 = map.DataSets.AddPushpinSet("myset");
Now I have to add the "locations" to the set, but donīt know how...
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 07-11-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 5
Ok, I took one hurdle:

It seems that there is now way to insert a location into the dataset of my choice. So I create a pushpin that will be added to the standard set by default. Afterwords, I have to move it to my set:

Code:
// create the dataset
MapPoint.DataSet set1 = map.DataSets.AddPushpinSet("Patients");

//resolving the Location using FindAdressResults in a seperate method
MapPoint.Location loc = ...

// create the pushpin
MapPoint.Pushpin pin = map.AddPushpin(loc,"location");
// and move it to set1
pin.MoveTo(set1);

I can even display the set on the map by

Code:
set1.DisplayPushpinMap();
But if I want to display the pins from set1 as a shaded area, I have to use DisplayDataMap() with several parameters.

One of them is the parameter field, which I donīt know how to declare right. All the examples in the web use an internal dataset of demographical data, now a dataset created manually.

Still open: where to add the additional value to determine the color of the area?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 07-20-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

Dont know how to set area color. Did a little search in the help but could not fount it. I hope someone else will drop in here.

btw: tanks for feedback, it benefit others.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 06-16-2006
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 9
Hi,

I don't think it's possible to use DisplayDataMap() function with manually created Datasets.
In fact it appears that Fields.Count for pushpinset is always 0.

Byeee
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

Tags
adding, data, displaying, territorries


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
Adding large amount of data to my map, what's the best way? Candace MapPoint 2006/2009 Discussion 4 03-14-2006 10:20 AM
Displaying a few simple data numbers per state on a US map Anonymous MapPoint 2006/2009 Discussion 1 05-05-2005 06:03 AM
Adding Non-Numerical Data Anonymous MapPoint 2006/2009 Discussion 2 08-10-2004 10:33 AM
displaying custom data on Pushpins when linked TheJudge MapPoint 2006/2009 Discussion 3 04-13-2004 08:53 AM
Need Assistance with Displaying CSV data by City SideStep MapPoint 2006/2009 Discussion 0 01-04-2004 11:18 PM


All times are GMT -5. The time now is 05:14 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Ibiza Holiday
Visit the party capital of Europe with an Ibiza holiday! Check out the deals online on UlookUbook...



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