Constructs a URL query to request a ZIP file containing spatial data from the French Ministry of Culture's "Atlas du Patrimoine" service.
zip_query_build(id, title, guid = NULL, extent_vals, crs = 2154)character. URL string for downloading the dataset in ZIP format.
character or numeric. Identifier of the dataset.
character. Title of the dataset.
character, optional. GUID of the dataset, if available.
numeric vector of length 4. Bounding box coordinates in
order: left, bottom, right, top.
numeric, default 2154. CRS code for the coordinate reference
system to use in the query.
The function formats the bounding box and metadata into a JSON object, then encodes it into a URL suitable for the Atlas Patrimoines export service.
CRS is converted to a string "EPSG:<code>".