This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
filter_style [2015/09/28 06:56] 127.0.0.1 external edit |
filter_style [2015/09/28 10:13] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Filter_Style ====== | + | ====== Filter Style ====== |
The filter style allows you to render only certain features from your feature layer that meet all of the filter conditions. A filter style can be configured to have one or more filter conditions. Each filter condition has a column name, match type and match value. The column name specifies which column of the attribute data you want to filter on. The match type and match value allow you to set up the operator and criteria for the filter condition. | The filter style allows you to render only certain features from your feature layer that meet all of the filter conditions. A filter style can be configured to have one or more filter conditions. Each filter condition has a column name, match type and match value. The column name specifies which column of the attribute data you want to filter on. The match type and match value allow you to set up the operator and criteria for the filter condition. | ||
Line 6: | Line 6: | ||
===== Video Overview ===== | ===== Video Overview ===== | ||
- | {{#ev:youtubehd|93ojY2jsXVA|720||Setting up a Filter Style.}} | + | {{youtube>93ojY2jsXVA?720|Setting up a Filter Style.}} |
===== Properties ===== | ===== Properties ===== | ||
Line 18: | Line 18: | ||
**Match Type** - This drop down sets the type of operation you want to use on the filter condition. For example if you had a column named rating that contained values from 1 to 10, you could use a match type of GreaterThan and a match value of 7 to return all features that had a rating greater than 7 in the attribute data. If custom is chosen for a match type, then you must put a valid [[http://en.wikipedia.org/wiki/Regular_expression|regular expression]] in the match value text box to have a valid filter condition. | **Match Type** - This drop down sets the type of operation you want to use on the filter condition. For example if you had a column named rating that contained values from 1 to 10, you could use a match type of GreaterThan and a match value of 7 to return all features that had a rating greater than 7 in the attribute data. If custom is chosen for a match type, then you must put a valid [[http://en.wikipedia.org/wiki/Regular_expression|regular expression]] in the match value text box to have a valid filter condition. | ||
- | {| class="wikitable" cellpadding="3" | + | ^Examples of Match Types ^ Description ^ |
- | ! Examples of Match Types | + | | DoesNotContain | Applies style to all features that does not contain the Match Value. | |
- | ! Description | + | | DoesNotEqual | Applies style to all features that does not match the Match Value. | |
- | |- | + | | Contains | Applies style to all features that contain the Match Value. | |
- | | DoesNotContain | + | | Equal | Applies style to all features that exactly match the Match Value. | |
- | | Applies style to all features that does not contain the Match Value. | + | | StartsWith | Applies style to all features that start with the same characters as the Match Value. | |
- | |- | + | | EndsWith | Applies style to all features that end with the same characters as the Match Value. | |
- | | DoesNotEqual | + | | GreaterThan | Applies style to all features that are equal to or greater than the numeric Match Value. | |
- | | Applies style to all features that does not match the Match Value. | + | | GreaterThan | Applies style to all features that are greater than the numeric Match Value. | |
- | |- | + | | LessThanOrEqualTo | Applies style to all features that are equal to or less than the numeric Match Value. | |
- | | Contains | + | | LessThan | Applies style to all features that are less than the numeric Match Value. | |
- | | Applies style to all features that contain the Match Value. | + | | DateRange | Applies style to all features that fall between two dates. | |
- | |- | + | | NumericRange | Applies style to all features that fall between two numbers. | |
- | | Equal | + | | IsEmpty | Applies style to all features that do not have a value. | |
- | | Applies style to all features that exactly match the Match Value. | + | | IsNotEmpty | Applies style to all features that has any value. | |
- | |- | + | | ValidFeature=Valid | Applies style to all features that has valid geometry. | |
- | | StartsWith | + | | ValidFeature=Invalid | Applies style to all features that has invalid geometry. | |
- | | Applies style to all features that start with the same characters as the Match Value. | + | | Custom (Regex) | Applies style to all features that matches a valid [[http://en.wikipedia.org/wiki/Regular_expression|regular expression]]. | |
- | |- | + | |
- | | EndsWith | + | |
- | | Applies style to all features that end with the same characters as the Match Value. | + | |
- | |- | + | |
- | | GreaterThan | + | |
- | | Applies style to all features that are equal to or greater than the numeric Match Value. | + | |
- | |- | + | |
- | | GreaterThan | + | |
- | | Applies style to all features that are greater than the numeric Match Value. | + | |
- | |- | + | |
- | | LessThanOrEqualTo | + | |
- | | Applies style to all features that are equal to or less than the numeric Match Value. | + | |
- | |- | + | |
- | | LessThan | + | |
- | | Applies style to all features that are less than the numeric Match Value. | + | |
- | |- | + | |
- | | DateRange | + | |
- | | Applies style to all features that fall between two dates. | + | |
- | |- | + | |
- | | NumericRange | + | |
- | | Applies style to all features that fall between two numbers. | + | |
- | |- | + | |
- | | IsEmpty | + | |
- | | Applies style to all features that do not have a value. | + | |
- | |- | + | |
- | | IsNotEmpty | + | |
- | | Applies style to all features that has any value. | + | |
- | |- | + | |
- | | ValidFeature=Valid | + | |
- | | Applies style to all features that has valid geometry. | + | |
- | |- | + | |
- | | ValidFeature=Invalid | + | |
- | | Applies style to all features that has invalid geometry. | + | |
- | |- | + | |
- | | Custom (Regex) | + | |
- | | Applies style to all features that matches a valid [[http://en.wikipedia.org/wiki/Regular_expression|regular expression]]. | + | |
- | |} | + | |
**Match Value** - This is where you set the value you wish to base your filter condition on. If match type is set to custom then this text box must be set to a valid [[http://en.wikipedia.org/wiki/Regular_expression|regular expression]] in order to be a valid filter condition. | **Match Value** - This is where you set the value you wish to base your filter condition on. If match type is set to custom then this text box must be set to a valid [[http://en.wikipedia.org/wiki/Regular_expression|regular expression]] in order to be a valid filter condition. | ||
Line 79: | Line 42: | ||
In addition to setting up conditions, there is also a **Script Tab** that allows you to filter your features in a more custom manner. The script languages available to use are Python, CSharp, and Ruby. If you are unsure of how to start with your script, there is an **Import code sample** button on the bottom of the scripting block to give you an idea on where to start. Before you apply the filter using scripting, it is best to use **Test Script** to insure your script is running properly. | In addition to setting up conditions, there is also a **Script Tab** that allows you to filter your features in a more custom manner. The script languages available to use are Python, CSharp, and Ruby. If you are unsure of how to start with your script, there is an **Import code sample** button on the bottom of the scripting block to give you an idea on where to start. Before you apply the filter using scripting, it is best to use **Test Script** to insure your script is running properly. | ||
- | [[Category:Styling a Map]] [[Category:Articles with Video]] | + |
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.