Changeset: 1a2ec665763f for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1a2ec665763f Modified Files: geom/monetdb5/geom_x3d.c Branch: sfcgal Log Message:
Since WKB does not accept PolyehdralSurface type we need to trick it to use a Collection. If it is dimension 2 let build proper output. The check should be done a layer up. diffs (29 lines): diff --git a/geom/monetdb5/geom_x3d.c b/geom/monetdb5/geom_x3d.c --- a/geom/monetdb5/geom_x3d.c +++ b/geom/monetdb5/geom_x3d.c @@ -66,8 +66,8 @@ geom_to_x3d_3(GEOSGeom geom, int precisi return x3d_3_tin(geom, precision, opts, defid); case wkbGeometryCollection_mdb: - //return x3d_3_psurface(geom, precision, opts, defid); - return x3d_3_collection(geom, precision, opts, defid); + return x3d_3_psurface(geom, precision, opts, defid); + //return x3d_3_collection(geom, precision, opts, defid); default: assert(0); @@ -395,12 +395,12 @@ x3d_3_multi_buf(GEOSGeom col, char *outp default: assert(0); } - if (dimension == 3){ + //if (dimension == 3){ if ( X3D_USE_GEOCOORDS(opts) ) ptr += sprintf(ptr, "<GeoCoordinate geoSystem='\"GD\" \"WE\" \"%s\"' point='", ((opts & GEOM_X3D_FLIP_XY) ? "latitude_first" : "longitude_first") ); else ptr += sprintf(ptr, "<Coordinate point='"); - } + //} ngeoms = GEOSGetNumGeometries(col); for (i=0; i<ngeoms; i++) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list