PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asgeojson_srs_buf()

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

Definition at line 93 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().

94 {
95  char *ptr = output;
96 
97  ptr += sprintf(ptr, "\"crs\":{\"type\":\"name\",");
98  ptr += sprintf(ptr, "\"properties\":{\"name\":\"%s\"}},", srs);
99 
100  return (ptr-output);
101 }
Here is the caller graph for this function: