Query and Modify Object Attributes

This article introduces how to query and modify object attributes. The operation steps are as follows:

  1. Function Entry: Select one or more geometries/texts in the map.
    • Map Context Menu: Right-click the mouse and select the Properties command.
    • Tab Buttons: Click the Recognize button under Select in the Map tab, or click the Recognize button under Select in the Features tab.
  2. The Properties panel pops up.
  • The top of the panel displays the selected objects list:
    • The list displays the attribute values of the display fields for the selected objects. The display field can be modified through layer properties settings. The name field is used by default; if there is no name field, the text field is used; if there is no text field, the SmID field is used. If an invalid expression field is set for the display field, it will be displayed as the invalid value "Null" when viewed in the object properties panel.
    • Supports performing the following operations on selected objects through the context menu: Zoom To, Delete, Copy/Paste Properties, Deselect, Select Only This Item, and Browse Associated Table.
    • Supports using the Shift/Ctrl keys to select multiple objects for batch operations (the Copy Properties function does not support multi-select operations).
    • If multiple objects are selected, the tree node at the top of the Properties panel will display all selected objects in the current map. You can select the tree node of different objects to switch and view their attributes.
  • The bottom of the panel displays the details of the selected object, including Object Properties, Geo, Node, and Enclosure. If the selected object is text, the Properties panel will also have a Text section. The contents of these five options are introduced separately below:
    Note:
    • Supports modifying attributes for objects with a unique value thematic map applied directly in the object properties panel via dropdown options, without manual input, improving cartography and editing efficiency.
    • Object Properties: The object properties display all property field attributes of the object, which are the selected fields of the record in the corresponding attribute table for the object, including the field, field alias, field type, field value, and whether the field is a required field.
      • Hide System Fields: This checkbox is used to set whether to display or hide system field attributes in the geometry's property window. Checking this checkbox hides all system field attributes, avoiding clutter when too many system fields prevent clear viewing of non-system field attributes.
      • Hide Details: This checkbox is used to set whether to display or hide detail fields in the geometry's property window. Detail fields include information like field and type. Checking this checkbox hides attributes of other fields, displaying only the two fields: field alias and field value.
  • Geo: Used to display the geographic information of the selected object, including type, length, bounds, etc.
    • Object Type: Displays the type information of the object, i.e., whether the object is a point, line, region, or other type of object.
    • Length: Displays the geodesic length of a line object.
    • Perimeter: Displays the geodesic perimeter of a region object.
    • Area: Displays the geodesic area of a region object.
    • Bounds: Top, Bottom, Left, and Right are used to display the spatial bounds information of the object. The Top and Bottom values are the two boundaries along the Y-axis direction (i.e., 'Y='). The Left and Right values are the two boundaries along the X-axis direction (i.e., 'X='). The unit of the numerical values is the same as that of the dataset where the selected object resides.
  • Node: Used to display the nodes of the selected object, i.e., information about the nodes that constitute the object, primarily displayed in table form.
    • Object:
      • Object Type: Displays the type information of the object.
      • Total Number of Subobjects: Displays the number of subobjects that constitute the selected object. A simple object has 1 subobject; a compound object may contain 2 or more subobjects.
      • Current Subobject: The combo box on its right lists all subobjects that constitute the selected object. Selecting any item from the dropdown list will display the node information (coordinate information) of the chosen subobject in the table below.
      • Total Number of Nodes: The total number of all nodes constituting the selected object (including all subobjects).
    • Node: This table area displays the nodes of the current subobject. Each record corresponds to a node of the subobject, with the information content being the node's coordinate information. The unit is the same as that of the dataset where the selected object resides.
      • Add Node: Adds a new node after the last node of the current subobject. The default X and Y coordinates are (0, 0). This button is only available when the selected object layer is an editable layer.
      • Insert Node: Inserts a new node at the currently selected node (the row marked with a cross). The X and Y coordinate values for the new node can be entered in the text boxes below the list box. This button is only available when the selected object layer is an editable layer and a node is selected in the list box.
      • Delete Node: Deletes the selected node(s) in the list box. This button is only available when the selected object layer is an editable layer and a node is selected in the list box. This button is unavailable when the number of unselected nodes in the list box is less than the object's control point count (i.e., a line object has fewer than 2 unselected nodes, or a region object has fewer than 3 unselected nodes).
      • Export Node: Exports all nodes in the list to .csv format. By default, all nodes are exported, and it is not possible to select specific nodes for export.
  • Enclosure: The attachment function provides a method to associate non-geographic data with geographic information. You can add files such as photos, videos, tables, and documents one by one or in batch to the attachments of selected objects, with support for display and viewing. For example, adding photos/videos collected from field surveys, or house layout drawings, real estate certificates, and other files related to real estate data to corresponding objects facilitates real-time query and management of related data. Currently, adding attachments is only supported for datasets in UDBX datasources and PostGIS database datasources.
    • Add Attachments: Click the Add Attachments button to open the Add Attachments dialog box. Select the file(s) to add to the object (supports batch selection by holding the Ctrl or Shift keys), then click the Add button. The maximum file size for supported attachments is 100M. Exceeding this limit will cause the addition to fail. Added files will be displayed in the attachment list, including the attachment name and size, as shown in the figure below. Adding files with the same name is not supported. If a file with the same name already exists, it will be filtered during subsequent additions, and a message "[Attachment Name] already exists" will be prompted in the output window.

    • Delete the attachment: If there is an attachment that needs to be removed, select it in the attachment list and then click the Delete button to delete it. Supports batch selection by holding the Ctrl or Shift keys and then deleting.
    • Download the attachment: Select an attachment in the attachment list and then click the Download the attachment button to save the selected attachment locally.
    • View Attachment: Double-click an attachment in the attachment list to open and view it using the corresponding local program.
      Note:
      • After successfully adding attachments, a Relation Dataset and a table containing the attachment files and relationship class will be generated under the datasource where the dataset resides, to establish an association between the object and the attachment files. If a record in the relationship table is deleted, the corresponding attachment file will also be deleted.
      • When merging objects with attachments: if the Save Geometry parameter is set, only the attachments of the selected object are retained; if Weighted Mean or Sum is selected, all attachments of the selected objects will be merged.
      • When decomposing an object with attachments, the attachments within the compound object will be randomly assigned to one of the decomposed objects.
      • If a dataset has attachments, copying the dataset does not synchronously copy the attachments.
      • If a dataset has attachments, using the Manage Replica function, the attachments in the dataset are not supported to follow the copied dataset to another datasource.
  • Text: If text is selected in the map, the Text option will appear in the Properties panel, primarily used to display and set the text style of the text. The set text style can be previewed immediately on the map.
    • Text: Sets the text whose style needs to be configured.
      • Subobject: Used to set the subobject within the currently displayed text.
      • Text Content: Displays and sets the text content of the current text subobject.
      • Rotation Angle: Used to set the rotation angle of the text. If the Apply to Subobject checkbox is checked, the set angle will apply to all subobjects of the current text.
      • Apply to All: After checking Apply to All, all text styles set on this page will be applied to all text in the dataset.
    • Font: The displayed font. Used to set the font used for the text. The combo box dropdown list on the right side of this label control provides a rich selection of fonts for users. Adding "@" before the font name in the combo box supports vertical display effects. It also provides a "Recent Fonts" group for easy selection of recently used font names. The system supports keyboard quick first-letter font positioning. For example, clicking the letter "T" on the keyboard will display fonts starting with "T" in the dropdown list. Click the combo box dropdown list on the right side of this label control and select a font.
    • Font Size: Displays and sets the font size of the text. Users can either enter a numerical value for the font size or select an appropriate font size from the combo box dropdown list on the right.
    • Font Height: Displays and sets the height of the text font.
    • Text Color: Used to set the text color. Click the color button on the right. Users can select and set an appropriate color in the pop-up color panel, or click the "Other Colors…" button at the bottom of the color panel to customize the desired text color in the popped-up "Color" dialog.
    • Background: Used to set the background or outline color of the text. Click the color button on the right. Users can select and set an appropriate color in the pop-up color panel, or click the "Other Colors…" button at the bottom of the color panel to customize the desired color in the popped-up "Color" dialog.
    • Font Effect: Check the corresponding font effect checkbox to apply that effect.
      • Bold: Controls whether the text uses bold font.
      • Strikethrough: Controls whether the text has strikethrough decoration.
      • Shadow: Controls whether the text has shadow decoration.
      • Underline: Controls whether the text has underline decoration.
      • Outline: Controls whether the text has outline decoration.
      • Transparent BG: Controls whether the text background is transparent.
      • Italic Left/Italic Right: Controls whether the text font is slanted left or right.
      • Fixed Size: Controls whether the text size is fixed. If this checkbox is checked, the text size does not change with map zooming; if unchecked, the text size scales with map zooming.
      • Alignment: Displays and sets the text alignment within the text object. The system provides 4 text alignments: Left Align, Right Align, Center Align, and Justify.