C# Class Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileLocator

Provides utilities for downloading data from the ACS website
Afficher le fichier Open project: azavea/acs-alchemist

Méthodes publiques

Méthode 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 méthode

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

GetAggregateDataGeographyFilename() public static méthode

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
Résultat string

GetStateAllGeometryFileName() public static méthode

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

GetStateAllGeometryUrl() public static méthode

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

GetStateBlockGroupDataDir() public static méthode

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
Résultat string

GetStateBlockGroupDataFilePath() public static méthode

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

GetStateBlockGroupFileName() public static méthode

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

GetStateBlockGroupUrl() public static méthode

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

GetStateWorkingDir() public static méthode

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