src/main/java/org/opensha/sha/earthquake/faultSysSolution/ruptures/util/GeoJSONFaultReader.java
public static List<GeoJSONFaultSection> filterByState(List<GeoJSONFaultSection> sects, String state, boolean includeSecondary) {
		List<GeoJSONFaultSection> ret = new ArrayList<>();
		for (GeoJSONFaultSection sect : sects) {
			String primState = sect.getProperty("PrimState", null);
			Preconditions.checkNotNull(primState, "Fault does not contain 'PrimState' property: %s", sect.getSectionId());
			String secState = sect.getProperty("SecState", null);
			if (state.equalsIgnoreCase(primState) || (includeSecondary && state.equalsIgnoreCase(secState)))
				ret.add(sect);
		}
		return ret;
	}
/**
	 * Filters the given list of GeoJSON fault sections by state. Sections must have the 'PrimState' property.
	 * 
	 * @param sects
	 * @param state state abbreviation, e.g., 'CA' (not case sensitive)
	 * @param includeSecondary if true, also include any sections where the 'SecState' property matches the supplied state
	 * @return
	 */
Filters the given list of GeoJSON fault sections by state. Sections must have the 'PrimState' property.

@param sects
@param state state abbreviation, e.g., 'CA' (not case sensitive)
@param includeSecondary if true, also include any sections where the 'SecState' property matches the supplied state
@return
Filters the given list of GeoJSON fault sections by state . Sections must have the ' PrimState ' property . @param sects @param state state abbreviation e . g . ' CA ' ( not case sensitive ) @param includeSecondary if true also include any sections where the ' SecState ' property matches the supplied state @return
public static List<GeoJSONFaultSection> filterByState(List<GeoJSONFaultSection> sects, String state, boolean includeSecondary) {
		List<GeoJSONFaultSection> ret = new ArrayList<>();
		for (GeoJSONFaultSection sect : sects) {
			String primState = sect.getProperty("PrimState", null);
			Preconditions.checkNotNull(primState, "Fault does not contain 'PrimState' property: %s", sect.getSectionId());
			String secState = sect.getProperty("SecState", null);
			if (state.equalsIgnoreCase(primState) || (includeSecondary && state.equalsIgnoreCase(secState)))
				ret.add(sect);
		}
		return ret;
	}
public static List < GeoJSONFaultSection > filterByState ( List < GeoJSONFaultSection > sects , String state , boolean includeSecondary ) { List < GeoJSONFaultSection > ret = new ArrayList < > ( ) ; for ( GeoJSONFaultSection sect : sects ) { String primState = sect . getProperty ( "PrimState" , null ) ; Preconditions . checkNotNull ( primState , "Fault does not contain 'PrimState' property: %s" , sect . getSectionId ( ) ) ; String secState = sect . getProperty ( "SecState" , null ) ; if ( state . equalsIgnoreCase ( primState ) || ( includeSecondary && state . equalsIgnoreCase ( secState ) ) ) ret . add ( sect ) ; } return ret ; }
Filters the given list of GeoJSON fault sections by state.
Filters the given list of GeoJSON fault sections by state .