Element connections can connect attributes from one dataset to another based on spatial, temporal, and attribute relationships, or some combination of these three. The dataset can be either spatial or attribute data. The feature connection will first determine all input objects that meet the connection conditions based on the specified conditions, and then connect the input objects that meet the requirements to the objects in the source data. The returned result type is Feature Dataset (FeatureRDD). Connect feature tools can transfer information from one layer and append it to another layer. When connecting elements, they can be connected based on spatial relationships, attribute relationships, temporal relationships, or a combination of the three. The specific instructions are as follows:
Spatial relationships
Determine the spatial relationship between features, and the available relationships will depend on the geometric type (point, line, or face) of the layer being connected. The spatial relationships provided are as follows: proximity, inclusion, inclusion, intersection, overlap, adjacency, distance, consistency. Please refer to: |Spatial relationship | diagram | explanation| | :-------- |:--------| :------| |Near |
Time relationship
Determine the temporal relationship between objects, and the available relationships depend on the time type (time or interval) of the layer being connected. For detailed instructions, please refer to: |Time relationship | diagram | explanation| | :-------- |:--------:| :------| |Near |
Connection type
Refers to the matching relationship between source object attributes and connection objects, providing two connection methods: one-to-one and one-to-many. Set using the "Feature Connection Type" parameter. ** * One to One Connection * : If the connection object that meets the conditions is one, the connection field attribute values of the connection object will be updated to the source object; If there are multiple connection objects that meet the conditions, only the number of objects that meet the conditions will be counted. * * One to Many Connection * *: This method preserves each multiple object that meets the condition in the result dataset. For example, if an object in the source dataset matches five objects in the connection dataset, the result dataset will contain these five objects</ span> !
Application Scenario
*Analyze the flow of fund transactions and calculate the total amount of funds transferred to the same account within a specified time frame. *By using element connectivity tools, additional information from various urban jurisdictions (such as school districts, police districts, communities, etc.) can be added to each crime, further studying and analyzing the impact of crime on different jurisdictions.
Parameter Description
Parameter Name | Default Value | Parameter Definition | Parameter Type |
---|---|---|---|
Target Dataset | The target data of the feature connection, and the attributes of the connected data will be appended to the associated target data | FeatureRDD | |
Connection data of feature connections | Connection data of feature connections, providing attribute datasets | FeatureRDD | |
Element Connection Type | Element Connection Type, one-to-one Connection: If multiple connection objects and a target object meet the association condition, multiple connection objects will be aggregated into one object through attribute statistics. At this point, attribute statistics can be set through stats. If not set, the default count is the number of connected objects. One to many connections: If multiple connection objects and a target object meet the association condition, the attributes of multiple connection objects will be connected to the target object, forming multiple result objects, and attribute statistics will not be performed | JavaJoinOperatorType | |
Element connection field (Optional) |
Element connection field, when the connection type is one-to-one connection, the mode of the field value is taken | String | |
Spatial relationship type (Optional) |
Spatial relationship type refers to the spatial relationship between feature objects in the target dataset and the connected dataset, as described above. At least one of the spatial association conditions, temporal association conditions, and attribute association conditions must be valid | JavaSpatialRelationType | |
Proximity distance (Optional) |
Proximity distance, used to determine whether the spatial distance between two objects is within the specified proximity distance range when the spatial relationship is' adjacent ' | JavaDistance | |
Time relationship judgment type (Optional) |
Time relationship judgment type, see the above time relationship description. At least one of the spatial association conditions, temporal association conditions, and attribute association conditions must be valid | JavaTimeOperatorType | |
Time distance (Optional) |
Time distance, used to determine whether the minimum time interval between two elements is within the specified time distance range when the time relationship judgment type is "adjacent" | JavaDuration | |
Attribute Connection Condition (Optional) |
Attribute Connection Condition, such as' tagField, Equal, joinField ', supports Equal and NotEqual. At least one of the spatial association conditions, temporal association conditions, and attribute association conditions must be valid | JavaAttributeRelation | |
Specify the field name and statistical method of the connection data to be counted (Optional) |
Specify the field name and statistical method of the connection data to be counted, such as' Field, sum, Field '_ Sum ', only valid when the connection type is' one-to-one connection' | JavaAttributeRelationship | |
Node tolerance (Optional) |
0.0 | Node tolerance. The default value is 0.0. When the tolerance is less than 1.0e-10, if the coordinate system of the dataset is a geographic coordinate system, the node tolerance of 1.0e-7 will be used; when the coordinate system is empty or the projection coordinate system, the node tolerance of 1.0e-2 will be used | Double |
Name of the field identifying the start time in the target feature dataset (Optional) |
Name of the field identifying the start time in the target feature dataset | String | |
Name of the field in the target feature dataset that identifies the end time (Optional) |
Name of the field in the target feature dataset that identifies the end time | String | |
Name of the field identifying the start time in the connected feature dataset (Optional) |
Name of the field identifying the start time in the connected feature dataset | String | |
Name of the field identifying the termination time in the connected feature dataset (Optional) |
Name of the field identifying the termination time in the connected feature dataset | String |