Changeset: 3f383ee48c92 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3f383ee48c92
Modified Files:
        geom/monetdb5/geom.c
        geom/sql/40_geom.sql
Branch: geo
Log Message:

ST_Length2D added


diffs (24 lines):

diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -1178,8 +1178,6 @@ str wkbGeometryType(char** out, wkb** ge
 }
 
 /* returns the number of dimensions of the geometry */
-/* geos does not know the number of dimensions as long as a wkb has been 
created 
- * more precisely it descards all dimensions but x and y*/
 str wkbCoordDim(int *out, wkb **geom) {
        return wkbBasicInt(out, *geom, GEOSGeom_getCoordinateDimension, 
"geom.CoordDim");
 }
diff --git a/geom/sql/40_geom.sql b/geom/sql/40_geom.sql
--- a/geom/sql/40_geom.sql
+++ b/geom/sql/40_geom.sql
@@ -331,7 +331,7 @@ CREATE FUNCTION ST_Intersects(geom1 Geom
 --CREATE FUNCTION ST_Intersects(geog1 Geography, geog2 Geography) RETURNS 
boolean EXTERNAL NAME geom."Intersects";
 CREATE FUNCTION ST_Length(geom Geometry) RETURNS double EXTERNAL NAME 
geom."Length";
 --CREATE FUNCTION ST_Length(geog Geography, use_spheroid boolean) RETURNS 
double EXTERNAL NAME geom."Length";
---CREATE FUNCTION ST_Length2D RETURNS EXTERNAL NAME
+CREATE FUNCTION ST_Length2D(geom Geometry) RETURNS double EXTERNAL NAME 
geom."Length";
 --CREATE FUNCTION ST_3DLength RETURNS EXTERNAL NAME
 --CREATE FUNCTION ST_Length_Spheroid RETURNS EXTERNAL NAME
 --CREATE FUNCTION ST_Length2D_Spheroid RETURNS EXTERNAL NAME
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to