PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ asgeojson_srs_buf()

static size_t asgeojson_srs_buf ( char *  output,
char *  srs 
)
static

Definition at line 107 of file lwout_geojson.c.

Referenced by asgeojson_collection_buf(), asgeojson_line_buf(), asgeojson_multiline_buf(), asgeojson_multipoint_buf(), asgeojson_multipolygon_buf(), asgeojson_point_buf(), and asgeojson_poly_buf().

108 {
109  char *ptr = output;
110 
111  ptr += sprintf(ptr, "\"crs\":{\"type\":\"name\",");
112  ptr += sprintf(ptr, "\"properties\":{\"name\":\"%s\"}},", srs);
113 
114  return (ptr-output);
115 }
Here is the caller graph for this function: