Created
July 26, 2019 19:11
-
-
Save randyzwitch/4e10de3ab30ae5b1ecf1a9ccfed6820c to your computer and use it in GitHub Desktop.
OmniSci.jl Geo query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> geodf = sql_execute(conn, "select * from omnisci_states") | |
52×4 DataFrame. Omitted printing of 1 columns | |
│ Row │ id │ abbr │ name │ | |
│ │ String⍰ │ String⍰ │ String⍰ │ | |
├─────┼─────────┼─────────┼──────────────────────┤ | |
│ 1 │ 01 │ AL │ Alabama │ | |
│ 2 │ 02 │ AK │ Alaska │ | |
│ 3 │ 04 │ AZ │ Arizona │ | |
│ 4 │ 05 │ AR │ Arkansas │ | |
│ 5 │ 11 │ DC │ District of Columbia │ | |
│ 6 │ 12 │ FL │ Florida │ | |
│ 7 │ 13 │ GA │ Georgia │ | |
│ 8 │ 15 │ HI │ Hawaii │ | |
⋮ | |
│ 44 │ 72 │ PR │ Puerto Rico │ | |
│ 45 │ 40 │ OK │ Oklahoma │ | |
│ 46 │ 41 │ OR │ Oregon │ | |
│ 47 │ 42 │ PA │ Pennsylvania │ | |
│ 48 │ 44 │ RI │ Rhode Island │ | |
│ 49 │ 49 │ UT │ Utah │ | |
│ 50 │ 50 │ VT │ Vermont │ | |
│ 51 │ 51 │ VA │ Virginia │ | |
│ 52 │ 53 │ WA │ Washington │ | |
julia> eltypes(geodf) | |
4-element Array{Union,1}: | |
Union{Missing, String} | |
Union{Missing, String} | |
Union{Missing, String} | |
Union{Missing, MultiPolygon} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment