JuliaGeo / GADM.jl

A Julia package for obtaining geographical data from the GADM dataset
https://gadm.org
MIT License
38 stars 4 forks source link

[polygon] Improve get function to return geometry of any region #15

Closed zerefwayne closed 4 years ago

zerefwayne commented 4 years ago

Returns the MULTIPOLYGON data for the requested region. Input: ISO3 Country Code, and further subdivisions

Examples:

  1. get("IND") - Returns polygon of India
  2. get("IND", "Uttar Pradesh") - Returns polygon of the state Uttar Pradesh
  3. get("IND", "Uttar Pradesh", "Lucknow") - Returns polygon of district Lucknow

Checks:

zerefwayne commented 4 years ago

Example

image

codecov-io commented 4 years ago

Codecov Report

Merging #15 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #15   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           31        45   +14     
=========================================
+ Hits            31        45   +14     
Impacted Files Coverage Δ
src/polygon.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f5c1c01...1510083. Read the comment docs.