/**********************************************************************
- * $Id:$
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.refractions.net
- * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * Copyright (C) 2001-2003 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU General Public Licence. See the COPYING file.
/**********************************************************************
- * $Id: lwgeom_transform.c -1M 2011-08-11 09:54:25Z (local) $
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.refractions.net
- * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * Copyright (C) 2001-2003 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU General Public Licence. See the COPYING file.
#include "utils/hsearch.h"
#include "lwgeom_transform.h"
-projPJ make_project(char *str1);
+projPJ lwproj_from_string(char *str1);
int pj_transform_nodatum(projPJ srcdefn, projPJ dstdefn, long point_count, int point_offset, double *x, double *y, double *z );
elog(ERROR, "GetProj4String returned NULL for SRID (%d)", srid);
}
- projection = make_project(proj_str);
+ projection = lwproj_from_string(proj_str);
pj_errno_ref = pj_get_errno_ref();
if ( (projection == NULL) || (*pj_errno_ref))
/** given a string, make a PJ object */
projPJ
-make_project(char *str1)
+lwproj_from_string(char *str1)
{
int t;
char *params[1024]; /* one for each parameter */
output_proj4 = text2cstring(output_proj4_text);
/* make input and output projection objects */
- input_pj = make_project(input_proj4);
+ input_pj = lwproj_from_string(input_proj4);
pj_errno_ref = pj_get_errno_ref();
if ( (input_pj == NULL) || (*pj_errno_ref))
}
pfree(input_proj4);
- output_pj = make_project(output_proj4);
+ output_pj = lwproj_from_string(output_proj4);
pj_errno_ref = pj_get_errno_ref();
if ((output_pj == NULL)|| (*pj_errno_ref))