C# 클래스 Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileLocator

Provides utilities for downloading data from the ACS website
파일 보기 프로젝트 열기: azavea/acs-alchemist

공개 메소드들

메소드 설명
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