Query a .shx shapefile index

read_shx(file, indices = NULL)

shx_meta(file)

Arguments

file

A .shx file

indices

A vector of indices or NULL to get all offsets.

Value

A tibble::tibble() with columns offset and content_length.

Examples

shx_meta(shp_example("3dpoints.shp"))
#> # A tibble: 1 x 2 #> file n_features #> <chr> <int> #> 1 /Users/runner/work/_temp/Library/shp/shp/3dpoints.shx 22
read_shx(shp_example("3dpoints.shp"))
#> # A tibble: 22 x 2 #> offset content_length #> <int> <int> #> 1 50 14 #> 2 68 14 #> 3 86 14 #> 4 104 14 #> 5 122 14 #> 6 63 14 #> 7 63 14 #> 8 176 14 #> 9 194 14 #> 10 212 14 #> # … with 12 more rows