PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ rt_util_gdal_supported_sr()

int rt_util_gdal_supported_sr ( const char *  srs)

Definition at line 256 of file rt_util.c.

256  {
257  OGRSpatialReferenceH hsrs;
258  OGRErr rtn = OGRERR_NONE;
259 
260  assert(srs != NULL);
261 
262  hsrs = OSRNewSpatialReference(NULL);
263  rtn = OSRSetFromUserInput(hsrs, srs);
264  OSRDestroySpatialReference(hsrs);
265 
266  if (rtn == OGRERR_NONE)
267  return 1;
268  else
269  return 0;
270 }

Referenced by rt_util_gdal_configured(), and rtpg_getSR().

Here is the caller graph for this function: