How to use the Query Builder to filter data in ArcGIS

Source: Internet
Author: User

How to use the Query Builder in ArcGIS to filter data when data display check data display check the data situation Query Builder Use function description filtered results

How to use the Query Builder to filter data in ArcGIS

Description: The ArcGIS I use is version 10.4.
Scene: I use someone else's. SHP data mapping found that there is a "township _point.shp" document shows Township, town, street three kinds of data, but I do not want to show street data, how to do it, the following is the resolution process. data display when no tick is selected

data display when checked

look at the data .

Right key

Property List Contents

You can see that the two letters in the back of the street in "Pyname" are "JD."
If the next two letters are "JD" filtered out, it solves the problem.
The following is the use of the workaround query Builder

1. Double-click "Township _point"
2. Select the definition query
3. Click on the Query Builder
4. Fill in the box under the Where Statement filter criteria

SUBSTRING ("Pyname", Char_length ("Pyname") -1,2) <> ' JD '

This condition means that the last two digits of the phonetic name are not "JD" data.

Step diagram:

If you want to know what functions you can use, look at the following figure:
function Description

In substring (string,start,length) string is the string you want to process, start is the starting position, starting from 1, so the last two bits are the Char_length function to take the string length and then subtract 1, not minus 2,length is length. Filtered Results

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.