Use Proj4 to reproject a given POINTARRAY.
Definition at line 303 of file lwgeom_in_gml.c.
305 projPJ in_pj, out_pj;
306 char *text_in, *text_out;
311 text_in = GetProj4StringSPI(srid_in);
312 text_out = GetProj4StringSPI(srid_out);
322 elog(ERROR,
"gml_reproject_pa: reprojection failed");
projPJ lwproj_from_string(const char *txt)
Get a projection from a string representation.
int ptarray_transform(POINTARRAY *pa, projPJ inpj, projPJ outpj)
Transform given POINTARRAY from inpj projection to outpj projection.
#define SRID_UNKNOWN
Unknown SRID value.
static void gml_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)
References gml_lwpgerror(), LW_FAILURE, lwfree(), lwproj_from_string(), ptarray_transform(), and SRID_UNKNOWN.
Referenced by parse_gml_curve(), parse_gml_data(), parse_gml_line(), parse_gml_linearring(), parse_gml_patch(), parse_gml_point(), parse_gml_polygon(), and parse_gml_triangle().