Use Proj to reproject a given POINTARRAY.
Definition at line 300 of file lwgeom_in_gml.c.
315 snprintf(text_in, 16,
"EPSG:%d", epsg_in);
316 snprintf(text_out, 16,
"EPSG:%d", epsg_out);
328 elog(ERROR,
"gml_reproject_pa: reprojection failed");
331 proj_destroy(lwp->
pj);
int ptarray_transform(POINTARRAY *pa, LWPROJ *pj)
LWPROJ * lwproj_from_str(const char *str_in, const char *str_out)
Allocate a new LWPROJ containing the reference to the PROJ's PJ If extra_geography_data is true,...
#define SRID_UNKNOWN
Unknown SRID value.
static void gml_lwpgerror(char *msg, __attribute__((__unused__)) int error_code)
References gml_lwpgerror(), LW_FAILURE, lwproj_from_str(), LWPROJ::pj, 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().