get_india_admin: Get Indian administrative boundaries

View source: R/admin.R

get_india_adminR Documentation

Get Indian administrative boundaries

Description

Returns Indian administrative boundaries as an sf object. Useful as the polygons argument to extract_panel().

Usage

get_india_admin(
  level = c("country", "state", "district"),
  source = c("gadm", "bhuvan")
)

Arguments

level

One of "country", "state", or "district".

source

One of "gadm" (default) or "bhuvan". For level = "state", the default uses a bundled LGD dataset with SoI-compliant boundaries regardless of source. "bhuvan" fetches geometries from the Bhuvan API so that names match bhuvan_stats() output exactly.

Details

State boundaries use a bundled LGD (Local Government Directory) dataset derived from the Survey of India.

For custom boundaries, load your own file with sf::read_sf() and pass it directly to extract_panel().

Value

An sf object.

Examples

# Bundled state boundaries (no download)
states <- get_india_admin("state")
head(states)

# Downloads from GADM or Bhuvan
districts <- get_india_admin("district")
districts <- get_india_admin("district", source = "bhuvan")


lightson documentation built on Nov. 3, 2026, 5:07 p.m.