MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Get link-data from online source ?

This is a discussion on Get link-data from online source ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to have a linked-data file (.csv) containing my coordinates info that is placed online, like "http://mappoint.mydomain.com/mapcoords.csv" so I ...


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

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 09-18-2007
Junior Member
White Belt
 
Join Date: Sep 2007
Posts: 4
Get link-data from online source ?

I want to have a linked-data file (.csv) containing my coordinates info that is placed online, like "http://mappoint.mydomain.com/mapcoords.csv" so I can just link to this in mappoint, so users don't have to download the file all the time. This file is update several times a day.
Is this possible in any way ? Just using the url doesn't seem to work.
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 09-18-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Re: Get link-data from online source ?

Hi,

What you want is very easy to do in a custom program. Do you have programming skills ?
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 09-18-2007
Junior Member
White Belt
 
Join Date: Sep 2007
Posts: 4
Re: Get link-data from online source ?

Yeah I've got programming skills, well at least I think so

What kind of solution are you suggesting ?
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 09-19-2007
Junior Member
White Belt
 
Join Date: Sep 2007
Posts: 4
Re: Get link-data from online source ?

What I want is something similar to:

WebClient Client = new WebClient();
Client.DownloadFile("http://tracker.mydomain.com", "c:\mappoint.csv");

at least that's what I think I need, preferably it would do it automatically every 10min or something like that and then do an "update".
Have looked at COM add-ins but can't find any really good examples and the ones I've tried to create in vs.net2005 doesn't work. Would prefer if I could do it in C#, but if I have to use another language I guess I'll have to live with that
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 09-20-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Re: Get link-data from online source ?

Hi,

Yes that's exacly how to do. I never used the WebClient in C# but should be something like that. you can do the update every 10 minutes or so with a Timer, eventually compare the file if changed and import it into the MP control.
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 09-21-2007
Junior Member
White Belt
 
Join Date: Sep 2007
Posts: 4
Re: Get link-data from online source ?

Thanks for the help.
Well after hours of looking through all the craptastic tutorials and guides I could find for making a COM add-in I finally managed to make my own button that gets and saves the file, yay me

But is there a way I can call the "update linked data"-function when I've clicked my "Get coordinate file"-button ?
This isn't supposed to be a live tracker or anything, but it would be nice only having to press 1 (or maybe 0) button rather than 2
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 09-22-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Re: Get link-data from online source ?

Hi,

Yes you can. Use the LinkData method to add the data to the map. It returns a dataset. Then after a while when you reload the file you can call the dataset's UpdateLink method and the map will automatically update it.
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
linkdata, online, source


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
Custom Data source Anonymous MapPoint Web Service and Virtual Earth 2 08-11-2005 04:25 PM
Question about Map Data Source VincentSun MapPoint 2006/2009 Discussion 0 02-27-2005 09:37 PM
Which data source to use ? Anonymous MapPoint 2006/2009 Discussion 0 07-07-2004 06:03 AM
Populating Territory using SQL Data Source Anonymous MapPoint 2006/2009 Discussion 0 11-21-2003 11:36 PM
[VB6 + ACCESS + MP] : How to change data source ? Vincent BENNER MapPoint 2006/2009 Discussion 0 10-17-2002 03:35 AM


All times are GMT -5. The time now is 07:08 AM.


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


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