From d9a7cb0ff968a56b4c48a277cdacff3ee8ff2e3c Mon Sep 17 00:00:00 2001 From: 00krishna Date: Sat, 15 Jun 2024 19:39:45 -0700 Subject: [PATCH] initial commit for adding nhgis parser. created new file nhgis_parser.jl, added imports to IPUMS.jl --- src/IPUMS.jl | 5 +++-- src/parsers/nhgis_parser.jl | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/parsers/nhgis_parser.jl diff --git a/src/IPUMS.jl b/src/IPUMS.jl index 1f1cc84..f8c956a 100644 --- a/src/IPUMS.jl +++ b/src/IPUMS.jl @@ -6,7 +6,8 @@ module IPUMS download as dl import OpenAPI.Clients: Client - + import Shapefile: + Table using DataFrames: DataFrames, DataFrame, @@ -54,7 +55,7 @@ module IPUMS =# include("parsers/ddi_parser.jl") - + include("parsers/nhgis_parser.jl") #= Exports diff --git a/src/parsers/nhgis_parser.jl b/src/parsers/nhgis_parser.jl new file mode 100644 index 0000000..5257c9f --- /dev/null +++ b/src/parsers/nhgis_parser.jl @@ -0,0 +1,16 @@ + + +function load_nhgis_extract(fname::String) + + + gdf = DataFrame(Table(fname)) + + return gdf + +end + + + + + +