This repository includes Python scripts that will create OpenIndexMaps from a CSV file.
OpenIndexMaps use the GeoJSON format.= Here is the general structure of an OpenIndexMap GeoJSON:
create-indexmap scripts require a CSV file that contains a spatial field to generate the index map polygons. This field can be either:
- bounding box coordinates (
w,s,e,n
)
OR
-
county names
-
At a minimum, the input CSV file must include “Title”, “Bounding Box”, and “Identifier”.
1. For regular index maps
It directly queries the coordinates of bounding boxes from the csv files column “Bounding Box”.
2. For irregular index maps
In order to create the county-shape polygons, it needs to join the county GeoJSON based on the county name and fetch the coordinates. Therefore, it is necessary to convert the county Shapefile into GeoJSON first.
-
2. Irregular Index maps