ArcGIS table association method (1)-join and relate

Source: Internet
Author: User
ArcGIS table Association

ArcGIS has many table joining methods: Join, relate, querylayer, ArcSDE view, and link class. These associations seem to have the same place, but in fact they are suitable for different data, for different software environments, application scenarios, and versions, we will analyze and describe each association.

All test environments in this article

Operating System: windows7 64bit

Database: Oracle 11.2.0.164bit

Middleware: arcsde10 SP2 64bit

Client: ArcGIS paitop10sp264bit

Data status

Surface elements: Place


Common table: Owner


Pre-Instruction

The storage and management of common tables in databases are completely different from those in ArcSDE. Although they are all stored in databases, however, the information for managing these common tables through ArcSDE is registered to the schema of ArcSDE, so there is a problem. When we need to manage a common table in the Linux operating system, if these tables are managed by ArcSDE, we can associate these tables through the ArcSDE service. If these tables are stored in normal mode, we can only associate them through the oledb driver, however, in windows, the default oledb drivers include sqlserver and Oracle. If you are using a DB2 database, you must install the oledb driver on your own or use the ArcSDE service without installing the oledb driver.

Join

Scenario: associate a element class with a common table

Data Environment: either file data or database can

Required: the element class must have an associated field with a common table.


After join, we can see that the attribute of the element class (both the attribute of the element class and the attribute of the common table)

Validate join for verification

Check whether the field name starts with an invalid character.

Check whether the field name contains invalid characters.

Check whether the field name matches the reserved word.

Check whether there is a non-geographic database MS access table.

Possible causes of table connection failure

L The values in the specified field used for connection do not match.

The connection is case sensitive. Pay attention to this issue when using string fields to create connections. For example, New York does not connect to New York. To convert string values to normal case formats, see tasks in field calculation.

L The Name Of The table or element class, or the field name in the table or element class contains spaces or special characters.

These special characters include hyphens (such as x-coordinate and Y-coordinate), Parentheses, square brackets, and symbols such as $, %, and. In fact, all characters except letters, numbers, and underscores are excluded, but the field name cannot start with a number or underline. You must edit text files with delimiters or field names in other tables to delete unsupported characters before using these files in ArcGIS. The names of element classes, tables, and fields in a geographical database can contain a maximum of 64 characters. (More specifically, you can enter up to 52 characters for the element Class Name of the personal geographic database, because the system will append the total number of characters
64 .) The maximum length of the shapefile and. DBF fields is 10 characters. For info tables, a maximum of 16 letters or numbers can be used.

L The field name in the table is a reserved word of Microsoft Access.

For example, date, day, month, table, text, user, when, where, year, and zone.

L tables are stored in Microsoft Access databases of non-personal geographic databases.

You should use ole db to connect to ArcGIS to access the Microsoft Access Table, instead of directly adding a database to ArcMap.


The biggest convenience of using join is to display the labels as follows:


This feature can be used to mark the attribute of the element class and the attribute of a common table at the same time to increase the readability of the data.

Storage Method: You can only use mxd for storage. If mxd is not used, the Association established by ArcMap is disabled and does not exist.

Tip: If the element class and Attribute Table are not in the same database (the same database indicates that the file data is in the same Geodatabase, and the non-file data is in the same database ), if you modify the Attribute Table value, it will not be updated in real time. You must create a join connection again to view the latest information.

Relate

The use of relate is similar to that of join, but relate does not change the table information of element classes (does not add the information of common tables to element classes ), however, you can view the information query using ArcMAP.

For more information about data usage, scenarios, and storage methods, see join.

Bytes -------------------------------------------------------------------------------------------------------
Copyright,ArticleReprinting is allowed, but the source address must be indicated through a link; otherwise, we will be held legally responsible!
QQ: 78773981
Blog: http://blog.csdn.net/linghe301
WEAVER: http://www.weibo.com/linghe301

Bytes -------------------------------------------------------------------------------------------------------

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.