The Java Viewers have several options for you to select, query, and buffer data:
- Identify. Allows you to get information about a feature on the map by clicking it. If features are close together, clicking the map will return attribute information for more than one feature. When this happens, the Identify Results dialog box lists each feature in the left panel.
- Find. Helps you locate features with an attribute value matching a string that you type. The Find tool is case sensitive, so pay particular attention to the case you use when typing your string. You can enter all or part of a word to search for.
The Find tool searches for strings. To search for numeric values, use the Query tool. Note that strings can contain or be entirely composed of numbers. To be numeric, a value must belong to a numeric field.
- Query. Lets you find features matching a query expression you build using a query builder. You can search by numeric or string value. You can also calculate statistics for a layer's numeric fields. A simple set of statistics is generated for all features or selected features of the active layer.
- Search. Allows you to search for features by typing a single value based on a stored query. The stored query must be built when you create a map configuration file using Author. For more information on stored queries, see Creating stored queries.
- Graphically selecting features. Allows you to select features by drawing a line, polygon, rectangle, or circle on the map. All features from the active layer that are contained within or intersected by the graphic are selected.
- Buffer. Allows you to create a buffer of a specified distance around the selected features of a layer. The buffer can be used to select the features of another layer that intersect it or are contained within it. Before creating a buffer, you must have selected one or more features using one of the other tools in this list. In the Java Custom Viewer, if you click the Buffer button before you have selected features, a message appears telling you that there are no selected features to buffer.
- Click Find on the toolbar.
The Find dialog box appears.
- Type the text string to search for in the Value text box.
Do not use quotes around a text string. The text is case sensitive.
- Click a layer in the list box. Hold down the Ctrl key and click multiple layers to search for features from more than one layer.
- Click Find.
A list of features with an attribute value matching the search string appears in the Find dialog box. You can see the complete attribute value matching the string that you typed. You can also see the Field to which the attribute value belongs.
- Click a feature to highlight it on the map.
- Click Pan To or Zoom To to pan or zoom to it.
- Click Close to close the Find dialog box.
- Click a layer in the legend to make it active.
- Click Query Builder on the toolbar.
- In the Select a field list box, click a field.
- Click an operator.
A message box might appear warning you that there are more than 100 values in the chosen field. Click Yes to add all of the values to the Values list box or No to add only a sample set of values.
- Click a value in the Values list box or type a value in the expression text box.
- Continue building your query expression as described above.
If you make a mistake, you can click Undo to remove the last element you added to the query string or click Clear to clear the entire query string.
- When you are done building the query, click Execute.
A list of matching features appears in tabular format in the bottom panel of the Query Builder dialog box. The features are also highlighted on the map.
- Click one of the features to select it.
- Click Pan or Zoom to pan or zoom to the feature.
- Click Highlight to highlight only the selected feature.
- Click Statistics to calculate statistics for the features.
Check Use Query Results to get statistics for the selected features. Otherwise, you will get statistics for the entire layer.
- The results of a query can be saved to a text file by clicking the Save Results button. In the Save dialog box, type a file name with a .txt extension. The contents of the text file can be analyzed using other software, such as a statistics or spreadsheet program.
- Close the Query Builder dialog box.
- Click a layer in the legend to make it active.
- Click Search on the toolbar.
Java Custom Viewer: If Search functionality is not supported for a layer, a message box appears to that effect. Otherwise, the Search dialog box appears.
- Click the Search by dropdown arrow and click the name of a query.
The Query expression appears below the dropdown box.
- Type a value in the text box to replace [%var%] in the query expression.
Do not use quotes around text strings. Also, remember that text strings are case sensitive.
- Click Search.
A list of features matching the search criteria appears in tabular format in the Search dialog box.
- Click a feature to highlight it on the map.
- Click Pan To or Zoom To to pan or zoom to it.
- Click Close to close the Search dialog box.
- Click a layer in the legend to make it active.
- In the Java Custom Viewer, click Select by Rectangle or Select by Circle on the toolbar. In the Java Standard Viewer, click the Select Features button then choose Rectangle or Circle on the menu that appears.
- Click and drag a graphic onto the map.
For circles, the point you click is the center.
- Release the mouse button.
The selected features are highlighted on the map.
- Click a layer in the legend to make it active.
- In the Java Custom Viewer, click Select by Line or Select Polygon on the toolbar. In the Java Standard Viewer, click the Select Features button then choose Line or Polygon on the menu that appears.
- Click the map to create each point in your line or polygon.
- Double-click the map to finish drawing.
The selected features are highlighted on the map.
- Click a layer in the legend to make it active.
- Select features of the active layer using one of the selection or querying tools.
- Click Buffer on the toolbar.
- Type a value for the buffer distance.
- Click the Buffer Units dropdown arrow and click Feet, Miles, Meters, or Kilometers.
- If you want to use the buffer to select features from another layer, check Use buffer to select features from this layer, then click the dropdown arrow and select a layer.
- Click Apply to create the buffer, leaving the Buffer dialog box open, OR
Click OK to create the Buffer and close the Buffer dialog box.
A buffer appears around the selected features.
- To clear the buffer, if the Buffer dialog box is still open, click Clear Buffer. If it is closed, click the Clear All Selection button on the toolbar.
Be cautious with the number of features you try to buffer. Depending on the number of features selected and the buffer distance, creating a buffer can take a while.
- Click the Clear Selection on the toolbar.
All selected features from all layers are removed.