OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
808 stars 295 forks source link

Add JSON and YAML C library dependency #3020

Open cwhite911 opened 1 year ago

cwhite911 commented 1 year ago

Discussed in https://github.com/OSGeo/grass/discussions/3019

Originally posted by cwhite911 June 5, 2023 In an effort add additional output data formats to modules (e.g., r.report, r.info, etc..) we are discussing adding new library dependencies to aid in JSON and YAML encoding.

Please share your feedback on the following candidate dependencies.

JSON

parson https://github.com/kgabis/parson/ Current release: 1.5.2 (2023)

Parson is a lightweight json library written in C.

YAML

libyaml https://github.com/yaml/libyaml Current release: 1.2.2 (2021-10-01)

LibYAML is a YAML parser and emitter library.

Related Issues and PRs

Candidate Modules

Which modules should have JSON & YAML output support?

General

Raster

3d Raster

Vector

Database

JSON output support without a library

florisvdh commented 1 month ago

Adding here that the preferred JSON encoding for g.proj output would be the PROJJSON specification: https://proj.org/en/latest/specifications/projjson.html. It's a JSON encoding of WKT2:2019.

nilason commented 1 day ago

@cwhite911 could this be closed?