PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rt_util_gdal_supported_sr()

int rt_util_gdal_supported_sr ( const char *  srs)

Definition at line 243 of file rt_util.c.

Referenced by rt_util_gdal_configured(), and rtpg_getSR().

243  {
244  OGRSpatialReferenceH hsrs;
245  OGRErr rtn = OGRERR_NONE;
246 
247  assert(srs != NULL);
248 
249  hsrs = OSRNewSpatialReference(NULL);
250  rtn = OSRSetFromUserInput(hsrs, srs);
251  OSRDestroySpatialReference(hsrs);
252 
253  if (rtn == OGRERR_NONE)
254  return 1;
255  else
256  return 0;
257 }
Here is the caller graph for this function: