]> granicus.if.org Git - postgis/commitdiff
Expose transform_point, make_project and GetProj4StringSPI. Creation of lwgem_transform.h
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Thu, 29 Oct 2009 18:40:34 +0000 (18:40 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Thu, 29 Oct 2009 18:40:34 +0000 (18:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4698 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_transform.c
postgis/lwgeom_transform.h [new file with mode: 0644]

index 579d16f978802f1abdf13ec4c7869519c6a12406..a8e5a6cbb518e308c40b1dc3670047e26d3e8ca4 100644 (file)
@@ -34,6 +34,7 @@ Datum postgis_proj_version(PG_FUNCTION_ARGS);
 #include "executor/spi.h"
 #include "access/hash.h"
 #include "utils/hsearch.h"
+#include "lwgeom_transform.h"
 
 projPJ make_project(char *str1);
 void to_rad(POINT4D *pt);
@@ -344,7 +345,7 @@ GetProjectionFromPROJ4SRSCache(PROJ4PortalCache *PROJ4Cache, int srid)
        return NULL;
 }
 
-static char* GetProj4StringSPI(int srid)
+char* GetProj4StringSPI(int srid)
 {
        static int maxproj4len = 512;
        int spi_result;
diff --git a/postgis/lwgeom_transform.h b/postgis/lwgeom_transform.h
new file mode 100644 (file)
index 0000000..d4cc2e8
--- /dev/null
@@ -0,0 +1,20 @@
+/**********************************************************************
+ * $Id:$ 
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 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 "postgres.h"
+#include "liblwgeom.h"
+#include "lwgeom_pg.h"
+#include "proj_api.h"
+
+projPJ make_project(char *str1);
+int transform_point(POINT4D *pt, projPJ srcdefn, projPJ dstdefn);
+char* GetProj4StringSPI(int srid);