Create a project independent of any QGIS output version.
Use parseQgs to read an existing QGS file.
Initial settings. The object may be omitted.
An editable model with empty layers, metadata, and a root tree group.
QgsError INVALID_EDIT for invalid options or a non-string title.
INVALID_EDIT
const empty = createProject();const project = createProject({ title: "Regional map" });project.crs = { authId: "EPSG:4326" };const xml = serializeQgs(project, { version: "4.2" }); Copy
const empty = createProject();const project = createProject({ title: "Regional map" });project.crs = { authId: "EPSG:4326" };const xml = serializeQgs(project, { version: "4.2" });
Create a project independent of any QGIS output version.
Use parseQgs to read an existing QGS file.