PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ lwproj_from_string()

projPJ lwproj_from_string ( const char *  txt)

Get a projection from a string representation.

Eg: "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"

Definition at line 167 of file liblwgeom/lwgeom_transform.c.

Referenced by gml_reproject_pa(), and transform_geom().

168 {
169  if (!str1 || str1[0] == '\0')
170  {
171  return NULL;
172  }
173  return pj_init_plus(str1);
174 }
Here is the caller graph for this function: