C# Class Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileLocator

Provides utilities for downloading data from the ACS website
Exibir arquivo Open project: azavea/acs-alchemist

Public Methods

Method Description
ExpandZipFile ( string sourceFile, string destPath ) : bool

wrapper function for unzipping a file to a destination

GetAggregateDataGeographyFilename ( string dataDirectory ) : string

Returns the path to the local copy of the geography file for a given state. Returns string.Empty if the file doesn't exist.

GetStateAllGeometryFileName ( AcsState state ) : string

Given a state, returns the name to the file containing its block group data

GetStateAllGeometryUrl ( AcsState state ) : string

Given a state, returns the URL to the file containing its block group data

GetStateBlockGroupDataDir ( AcsState state ) : string

Returns the path to the directory where the raw data files for a given should be extracted/read from

GetStateBlockGroupDataFilePath ( AcsState state ) : string

Gets the local path of the zip file containing all the raw blockgroup/tract data

GetStateBlockGroupFileName ( AcsState state ) : string

Given a state, returns the name to the file containing its block group data

GetStateBlockGroupUrl ( AcsState state ) : string

Given a state, returns the URL to the file containing its block group data

GetStateWorkingDir ( AcsState state ) : string

Gets the working directory for a given state

Method Details

ExpandZipFile() public static method

wrapper function for unzipping a file to a destination
public static ExpandZipFile ( string sourceFile, string destPath ) : bool
sourceFile string
destPath string
return bool

GetAggregateDataGeographyFilename() public static method

Returns the path to the local copy of the geography file for a given state. Returns string.Empty if the file doesn't exist.
public static GetAggregateDataGeographyFilename ( string dataDirectory ) : string
dataDirectory string
return string

GetStateAllGeometryFileName() public static method

Given a state, returns the name to the file containing its block group data
public static GetStateAllGeometryFileName ( AcsState state ) : string
state AcsState
return string

GetStateAllGeometryUrl() public static method

Given a state, returns the URL to the file containing its block group data
public static GetStateAllGeometryUrl ( AcsState state ) : string
state AcsState
return string

GetStateBlockGroupDataDir() public static method

Returns the path to the directory where the raw data files for a given should be extracted/read from
public static GetStateBlockGroupDataDir ( AcsState state ) : string
state AcsState
return string

GetStateBlockGroupDataFilePath() public static method

Gets the local path of the zip file containing all the raw blockgroup/tract data
public static GetStateBlockGroupDataFilePath ( AcsState state ) : string
state AcsState
return string

GetStateBlockGroupFileName() public static method

Given a state, returns the name to the file containing its block group data
public static GetStateBlockGroupFileName ( AcsState state ) : string
state AcsState
return string

GetStateBlockGroupUrl() public static method

Given a state, returns the URL to the file containing its block group data
public static GetStateBlockGroupUrl ( AcsState state ) : string
state AcsState
return string

GetStateWorkingDir() public static method

Gets the working directory for a given state
public static GetStateWorkingDir ( AcsState state ) : string
state AcsState
return string