Use Proj to reproject a given POINTARRAY.
Definition at line 336 of file lwgeom_in_gml.c.
337{
339 char text_in[16];
340 char text_out[16];
341
343 return pa;
344
346 {
348 return NULL;
349 }
350
351 snprintf(text_in, 16, "EPSG:%d", epsg_in);
352 snprintf(text_out, 16, "EPSG:%d", epsg_out);
353
354
356 if (!lwp)
357 {
359 return NULL;
360 }
361
363 {
364 elog(ERROR, "gml_reproject_pa: reprojection failed");
365 return NULL;
366 }
367 proj_destroy(lwp->
pj);
368 pfree(lwp);
369
370 return pa;
371}
int ptarray_transform(POINTARRAY *pa, LWPROJ *pj)
#define SRID_UNKNOWN
Unknown SRID value.
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,...
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().