PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ rt_util_gdal_supported_sr()

int rt_util_gdal_supported_sr ( const char *  srs)

Definition at line 246 of file rt_util.c.

246  {
247  OGRSpatialReferenceH hsrs;
248  OGRErr rtn = OGRERR_NONE;
249 
250  assert(srs != NULL);
251 
252  hsrs = OSRNewSpatialReference(NULL);
253  rtn = OSRSetFromUserInput(hsrs, srs);
254  OSRDestroySpatialReference(hsrs);
255 
256  if (rtn == OGRERR_NONE)
257  return 1;
258  else
259  return 0;
260 }

Referenced by rt_util_gdal_configured(), and rtpg_getSR().

Here is the caller graph for this function: