src/main/java/org/opensha/sha/earthquake/faultSysSolution/ruptures/util/GeoJSONFaultReader.java
public static Map<Integer, List<GeoSlipRateRecord>> readGeoDB(Reader reader) throws IOException {
		if (!(reader instanceof BufferedReader))
			reader = new BufferedReader(reader);
		Map<Integer, List<GeoSlipRateRecord>> ret = new HashMap<>();
		
		FeatureCollection features = FeatureCollection.read(reader);
		
		for (Feature feature : features.features) {
			GeoSlipRateRecord record = new GeoSlipRateRecord(feature);
			List<GeoSlipRateRecord> faultRecords = ret.get(record.faultID);
			if (faultRecords == null) {
				faultRecords = new ArrayList<>();
				ret.put(record.faultID, faultRecords);
			}
			faultRecords.add(record);
		}
		reader.close();
		return ret;
	}
/**
	 * Loads all fault geologic slip rate records from the given GeoJSON reader. Results are mapped from fault ID to 
	 * records for that fault.
	 * 
	 * @param reader
	 * @return map of fault ID to geologic records for that fault
	 * @throws IOException
	 */
Loads all fault geologic slip rate records from the given GeoJSON reader. Results are mapped from fault ID to
records for that fault.

@param reader
@return map of fault ID to geologic records for that fault
@throws IOException
Loads all fault geologic slip rate records from the given GeoJSON reader . Results are mapped from fault ID to records for that fault . @param reader @return map of fault ID to geologic records for that fault @throws IOException
public static Map<Integer, List<GeoSlipRateRecord>> readGeoDB(Reader reader) throws IOException {
		if (!(reader instanceof BufferedReader))
			reader = new BufferedReader(reader);
		Map<Integer, List<GeoSlipRateRecord>> ret = new HashMap<>();
		FeatureCollection features = FeatureCollection.read(reader);
		for (Feature feature : features.features) {
			GeoSlipRateRecord record = new GeoSlipRateRecord(feature);
			List<GeoSlipRateRecord> faultRecords = ret.get(record.faultID);
			if (faultRecords == null) {
				faultRecords = new ArrayList<>();
				ret.put(record.faultID, faultRecords);
			}
			faultRecords.add(record);
		}
		reader.close();
		return ret;
	}
public static Map < Integer , List < GeoSlipRateRecord > > readGeoDB ( Reader reader ) throws IOException { if ( ! ( reader instanceof BufferedReader ) ) reader = new BufferedReader ( reader ) ; Map < Integer , List < GeoSlipRateRecord > > ret = new HashMap < > ( ) ; FeatureCollection features = FeatureCollection . read ( reader ) ; for ( Feature feature : features . features ) { GeoSlipRateRecord record = new GeoSlipRateRecord ( feature ) ; List < GeoSlipRateRecord > faultRecords = ret . get ( record . faultID ) ; if ( faultRecords == null ) { faultRecords = new ArrayList < > ( ) ; ret . put ( record . faultID , faultRecords ) ; } faultRecords . add ( record ) ; } reader . close ( ) ; return ret ; }
Loads all fault geologic slip rate records from the given GeoJSON reader.
Loads all fault geologic slip rate records from the given GeoJSON reader .