From: Olivier Courtin Date: Thu, 29 Oct 2009 18:40:34 +0000 (+0000) Subject: Expose transform_point, make_project and GetProj4StringSPI. Creation of lwgem_transform.h X-Git-Tag: 1.5.0b1~329 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d24822a4e6a195341156e47525a0b098035923b;p=postgis Expose transform_point, make_project and GetProj4StringSPI. Creation of lwgem_transform.h git-svn-id: http://svn.osgeo.org/postgis/trunk@4698 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_transform.c b/postgis/lwgeom_transform.c index 579d16f97..a8e5a6cbb 100644 --- a/postgis/lwgeom_transform.c +++ b/postgis/lwgeom_transform.c @@ -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 index 000000000..d4cc2e84e --- /dev/null +++ b/postgis/lwgeom_transform.h @@ -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);