PostGIS  2.5.0beta2dev-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 168 of file liblwgeom/lwgeom_transform.c.

Referenced by gml_reproject_pa(), and transform_geom().

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