]> granicus.if.org Git - postgis/commitdiff
Fix missing math.h include in lwout_svg (#438). Put back lwgeom_export.h as we need...
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Mon, 22 Feb 2010 19:52:30 +0000 (19:52 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Mon, 22 Feb 2010 19:52:30 +0000 (19:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5301 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwout_svg.c
postgis/geography_inout.c
postgis/lwgeom_export.c
postgis/lwgeom_export.h [new file with mode: 0644]

index 09199c658cdd43c9e7b75a21f24fb4ba27912e41..535ebbf34c13087aca34e061ab59261bcaac68ab 100644 (file)
@@ -1,5 +1,5 @@
 /**********************************************************************
- * $Id:$
+ * $Id$
  *
  * PostGIS - Spatial Types for PostgreSQL
  * http://postgis.refractions.net
@@ -21,6 +21,7 @@
 
 
 #include "liblwgeom.h"
+#include <math.h>  /* fabs */
 
 static char * assvg_point(LWPOINT *point, int relative, int precision);
 static char * assvg_line(LWLINE *line, int relative, int precision);
index 4ae609c627ea6ec9e74cfc2571cc283a395c66bd..5d717b5b1509ed493913b36b8bc64bed27cfa22a 100644 (file)
@@ -28,6 +28,7 @@
 #include "libgeom.h"         /* For standard geometry types. */
 #include "lwgeom_pg.h"       /* For debugging macros. */
 #include "geography.h"      /* For utility functions. */
+#include "lwgeom_export.h"   /* For export functions. */
 
 Datum geography_in(PG_FUNCTION_ARGS);
 Datum geography_out(PG_FUNCTION_ARGS);
index 1e3a8c84da4e9a51f8769fcea8aeebcf71e53111..b17875fa6da8b304d9f368d0b261bcc36f8ffd96 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "lwgeom_pg.h"
 #include "liblwgeom.h"
+#include "lwgeom_export.h"
 
 Datum LWGEOM_asGML(PG_FUNCTION_ARGS);
 Datum LWGEOM_asKML(PG_FUNCTION_ARGS);
diff --git a/postgis/lwgeom_export.h b/postgis/lwgeom_export.h
new file mode 100644 (file)
index 0000000..5a57713
--- /dev/null
@@ -0,0 +1,12 @@
+/**********************************************************************
+ * $Id:$
+ *
+ * PostGIS - Export functions for PostgreSQL/PostGIS
+ * Copyright 2009 Olivier Courtin <olivier.courtin@oslandia.com>
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of the GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************/
+
+char * getSRSbySRID(int SRID, bool short_crs);