Changeset: f3339f0df82a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f3339f0df82a
Modified Files:
geom/monetdb5/sfcgal.c
Branch: sfcgal
Log Message:
Do not use GEOS_getWKBOutputDims because it does not always return correct
Dimension number, what we want is GEOSGeom_getCoordinateDimension
diffs (13 lines):
diff --git a/geom/monetdb5/sfcgal.c b/geom/monetdb5/sfcgal.c
--- a/geom/monetdb5/sfcgal.c
+++ b/geom/monetdb5/sfcgal.c
@@ -432,7 +432,8 @@ sfcgal_from_geom(str *ret, const GEOSGeo
int i;
*ret = MAL_SUCCEED;
- is_3d = GEOS_getWKBOutputDims(geom) == 3;
+ //is_3d = GEOS_getWKBOutputDims(geom) == 3;
+ is_3d = GEOSGeom_getCoordinateDimension(geom) == 3;
switch (type)
{
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list