Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 7 of 7

Get link-data from online source ?

This is a discussion on Get link-data from online source ? within the MapPoint Desktop 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 ...

  1. #1
    Pongman is offline 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.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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 ?

  3. #3
    Pongman is offline 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 ?

  4. #4
    Pongman is offline 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

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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.

  6. #6
    Pongman is offline 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

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom Data source
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 2
    Last Post: 08-11-2005, 04:25 PM
  2. Question about Map Data Source
    By VincentSun in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-27-2005, 09:37 PM
  3. Which data source to use ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-07-2004, 06:03 AM
  4. Populating Territory using SQL Data Source
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-21-2003, 11:36 PM
  5. [VB6 + ACCESS + MP] : How to change data source ?
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-17-2002, 03:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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