Changeset: a79451a2a74b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a79451a2a74b
Modified Files:
        geom/monetdb5/geom_x3d.c
Branch: sfcgal
Log Message:

Type in the output of X3D. For the moment turn off the </Shape> tab for 
Collections


diffs (39 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
@@ -497,7 +497,7 @@ x3d_3_psurface_buf(const GEOSGeometry *p
             {
                 ptr += sprintf(ptr, " ");
             }
-            ptr += sprintf(ptr, "%ud", (j + k));
+            ptr += sprintf(ptr, "%u", (j + k));
         }
         if (i < (ngeoms - 1) )
         {
@@ -618,7 +618,7 @@ x3d_3_collection_size(const GEOSGeometry
     for (i=0; i<ngeoms; i++)
     {
         const GEOSGeometry *subgeom = GEOSGetGeometryN(col, i);
-        size += ( sizeof("<Shape />") + defidlen ) * 2;
+        //size += ( sizeof("<Shape />") + defidlen ) * 2;
         switch (type) {
             case ( wkbPoint_mdb ):
                 size += x3d_3_point_size(subgeom, precision);
@@ -662,7 +662,7 @@ x3d_3_collection_buf(const GEOSGeometry 
     for (i=0; i<ngeoms; i++)
     {
         subgeom = GEOSGetGeometryN(col, i);
-        ptr += sprintf(ptr, "<Shape%s>", defid);
+        //ptr += sprintf(ptr, "<Shape%s>", defid);
         switch (type) {
             case ( wkbPoint_mdb ):
                 ptr += x3d_3_point_buf(subgeom, ptr, precision, opts);
@@ -690,7 +690,7 @@ x3d_3_collection_buf(const GEOSGeometry 
                 assert(0);
         }
 
-        ptr += printf(ptr, "</Shape>");
+        //ptr += printf(ptr, "</Shape>");
     }
 
     return (ptr-output);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to