]> granicus.if.org Git - postgis/commitdiff
Use ST_MinkowskiSum rather than ST_Minkowski userland.
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Fri, 10 May 2013 16:23:22 +0000 (16:23 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Fri, 10 May 2013 16:23:22 +0000 (16:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11408 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_sfcgal.xml
postgis/sfcgal.sql.in
postgis/uninstall_sfcgal.sql.in
regress/regress_sfcgal.sql
regress/regress_sfcgal_expected

index 01f03852031ca05fafb722fff35005cf0bb52b12..94aa4ce921b00f1e82c03673d30007a2e008fa94 100644 (file)
 
        </refentry>
 
-       <refentry id="ST_Triangulate">
+       <refentry id="ST_MinkowskiSum">
          <refnamediv>
-               <refname>ST_Minkowski</refname>
+               <refname>ST_MinkowskiSum</refname>
 
                <refpurpose>Perform Minkowski sum</refpurpose>
          </refnamediv>
index 344cfa9cc7fa93b95792efeaba65103f13e4b2c8..1ff6e0fc0b924f9bcb4d1c9c610d224355d2e680 100644 (file)
@@ -55,7 +55,7 @@ CREATE OR REPLACE FUNCTION ST_Orientation(geometry)
        LANGUAGE 'c' IMMUTABLE STRICT
        COST 100;
 
-CREATE OR REPLACE FUNCTION ST_Minkowski(geometry, geometry)
+CREATE OR REPLACE FUNCTION ST_MinkowskiSum(geometry, geometry)
        RETURNS geometry
        AS 'MODULE_PATHNAME','sfcgal_minkowski_sum'
        LANGUAGE 'c' IMMUTABLE STRICT
index cb5a2fe4439bdfb7544d0b13dac3ca83c9a4aede..dea74665ecd746d56dd28195194396c309a8d877 100644 (file)
@@ -29,7 +29,7 @@ DROP FUNCTION IF EXISTS ST_ForceLHR(geometry);
 
 DROP FUNCTION IF EXISTS ST_Orientation(geometry);
 
-DROP FUNCTION IF EXISTS ST_Minkowski(geometry, geometry);
+DROP FUNCTION IF EXISTS ST_MinkowskiSum(geometry, geometry);
 
 DROP FUNCTION IF EXISTS ST_StraightSkeleton(geometry);
 
index 6f00f67e3d6de20d4b09bdf32410f38e1475ced6..4111bff668832e78b53a2b0a7c41d69848ecccf2 100644 (file)
@@ -14,7 +14,7 @@ SELECT 'ST_Extrude_surface', ST_AsText(ST_Extrude(ST_Extrude(ST_Extrude('POINT(0
 SELECT 'ST_ForceLHR', ST_AsText(ST_ForceLHR('POLYGON((0 0,0 1,1 1,1 0,0 0))'));
 SELECT 'ST_Orientation_1', ST_Orientation(ST_ForceLHR('POLYGON((0 0,0 1,1 1,1 0,0 0))'));
 SELECT 'ST_Orientation_2', ST_Orientation(ST_ForceRHR('POLYGON((0 0,0 1,1 1,1 0,0 0))'));
-SELECT 'ST_Minkowski', ST_AsText(ST_Minkowski('LINESTRING(0 0,4 0)','POLYGON((0 0,1 0,1 1,0 1,0 0))'));
+SELECT 'ST_MinkowskiSum', ST_AsText(ST_MinkowskiSum('LINESTRING(0 0,4 0)','POLYGON((0 0,1 0,1 1,0 1,0 0))'));
 SELECT 'ST_StraightSkeleton', ST_AsText(ST_StraightSkeleton('POLYGON((0 0,1 0,1 1,0 1,0 0))'));
 
 -- Backend switch tests
index 10ca3628706bb2d0ad3f333f30dfba40c549329d..d0f8d3c33bea06a6962285e727aa2ad9ef628c63 100644 (file)
@@ -7,7 +7,7 @@ ST_Extrude_surface|POLYHEDRALSURFACE Z (((1 1 0,1 0 0,0 1 0,1 1 0)),((0 1 1,1 0
 ST_ForceLHR|POLYGON((0 0,1 0,1 1,0 1,0 0))
 ST_Orientation_1|-1
 ST_Orientation_2|1
-ST_Minkowski|MULTIPOLYGON(((0 0,1 0,5 0,5 1,4 1,0 1,0 0)))
+ST_MinkowskiSum|MULTIPOLYGON(((0 0,1 0,5 0,5 1,4 1,0 1,0 0)))
 ST_StraightSkeleton|MULTILINESTRING((0 0,0.5 0.5),(1 0,0.5 0.5),(1 1,0.5 0.5),(0 1,0.5 0.5))
 intersection_geos|POINT(0 0)
 intersection_sfcgal|POINT(-0 -0)