PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ asgeojson_srs_size()

static size_t asgeojson_srs_size ( char *  srs)
static

Handle SRS.

Definition at line 95 of file lwout_geojson.c.

96 {
97  int size;
98 
99  size = sizeof("'crs':{'type':'name',");
100  size += sizeof("'properties':{'name':''}},");
101  size += strlen(srs) * sizeof(char);
102 
103  return size;
104 }

Referenced by asgeojson_collection_size(), asgeojson_line_size(), asgeojson_multiline_size(), asgeojson_multipoint_size(), asgeojson_multipolygon_size(), asgeojson_point_size(), and asgeojson_poly_size().

Here is the caller graph for this function: