I'm trying to get the SRID from geoarrow metadata, for postgis.
Reading the docs from CRS struct, I saw it's a wrapper of PROJJSON. I learned PROJJSON structure may look like this:
{
"type": "GeographicCRS",
"name": "WGS 84",
"id": {
"authority": "EPSG",
"code": 4326
},
...
}
But from the test cases of CRS module it seems we could have other representations fo SRID.
So my question is:
- What would be the standard way to extract SRID from the CRS metadata?
- Is it possible to add something
srid(&self) -> Option<u64> to CRS?
I'm trying to get the SRID from geoarrow metadata, for postgis.
Reading the docs from CRS struct, I saw it's a wrapper of PROJJSON. I learned PROJJSON structure may look like this:
{ "type": "GeographicCRS", "name": "WGS 84", "id": { "authority": "EPSG", "code": 4326 }, ... }But from the test cases of CRS module it seems we could have other representations fo SRID.
So my question is:
srid(&self) -> Option<u64>to CRS?