PostGIS  2.1.10dev-r@@SVN_REVISION@@
int rt_util_gdal_supported_sr ( const char *  srs)

Definition at line 354 of file rt_api.c.

Referenced by rt_util_gdal_configured(), and rtpg_getSR().

354  {
355  OGRSpatialReferenceH hsrs;
356  OGRErr rtn = OGRERR_NONE;
357 
358  assert(srs != NULL);
359 
360  hsrs = OSRNewSpatialReference(NULL);
361  rtn = OSRSetFromUserInput(hsrs, srs);
362  OSRDestroySpatialReference(hsrs);
363 
364  if (rtn == OGRERR_NONE)
365  return 1;
366  else
367  return 0;
368 }

Here is the caller graph for this function: