C# Класс Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileLocator

Provides utilities for downloading data from the ACS website
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ExpandZipFile() публичный статический Метод

wrapper function for unzipping a file to a destination
public static ExpandZipFile ( string sourceFile, string destPath ) : bool
sourceFile string
destPath string
Результат bool

GetAggregateDataGeographyFilename() публичный статический Метод

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
Результат string

GetStateAllGeometryFileName() публичный статический Метод

Given a state, returns the name to the file containing its block group data
public static GetStateAllGeometryFileName ( AcsState state ) : string
state AcsState
Результат string

GetStateAllGeometryUrl() публичный статический Метод

Given a state, returns the URL to the file containing its block group data
public static GetStateAllGeometryUrl ( AcsState state ) : string
state AcsState
Результат string

GetStateBlockGroupDataDir() публичный статический Метод

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
Результат string

GetStateBlockGroupDataFilePath() публичный статический Метод

Gets the local path of the zip file containing all the raw blockgroup/tract data
public static GetStateBlockGroupDataFilePath ( AcsState state ) : string
state AcsState
Результат string

GetStateBlockGroupFileName() публичный статический Метод

Given a state, returns the name to the file containing its block group data
public static GetStateBlockGroupFileName ( AcsState state ) : string
state AcsState
Результат string

GetStateBlockGroupUrl() публичный статический Метод

Given a state, returns the URL to the file containing its block group data
public static GetStateBlockGroupUrl ( AcsState state ) : string
state AcsState
Результат string

GetStateWorkingDir() публичный статический Метод

Gets the working directory for a given state
public static GetStateWorkingDir ( AcsState state ) : string
state AcsState
Результат string