MapInfo Development Experience--data article

Source: Internet
Author: User

The previous article introduced a simple map scaling tool to make, and then need to introduce the map data reading and loading design.

First of all, the data on the map is from the database and automatically generated, I do not use the MapInfo ado.net, but the query interface with its own system, plus a custom entity to generate map entities, and insert the MapInfo in the temporary table in the session to show.

In view of the program extensibility, I will be data acquisition, graphic element display, map display and so on separate, as far as possible to be flexible and understandable.

Data acquisition interface, I have defined only one method:

/**////<summary>
///Data provides interfaces that define the basic methods of obtaining data
///</summary> public
Interface idataprovider
 
   {
/**////<summary>
///Get all data main methods
///</summary>
///<returns> acquired entity columns  Table </returns>
list<abstractentity> GetData ();
}
 

This method returns the list< custom abstract entity, which represents several collections of entities that need to be displayed.

So the most important thing is to abstractentity.

In this abstract entity, I define two properties X and Y, which represent the coordinates of the entities:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.