size_t defidlen = strlen(defid);\r
int i;\r
\r
- size = ( sizeof("<IndexedFaceSet></IndexedFaceSet>") + (defidlen*3) ) * 2;\r
+ size = ( sizeof("<IndexedFaceSet></IndexedFaceSet>") + (defidlen*3) ) * 2 + 6 * (poly->nrings - 1);\r
//size += ( sizeof("<interior><LinearRing>//") + (defidlen*2) ) * 2 * (poly->nrings - 1);\r
//size += ( sizeof("<posList></posList>") + (defidlen*2) ) * poly->nrings;\r
//if (srs) size += strlen(srs) + sizeof(" srsName=..");\r
}\r
\r
\r
-/* In X3D3, inside <posList> or <pos>, coordinates are separated by a space separator\r
- * In X3D3 also, lat/lon are reversed for geocentric data\r
+/* In X3D3, coordinates are separated by a space separator\r
*/\r
static size_t\r
pointArray_toX3D3(POINTARRAY *pa, char *output, int precision, int opts, int type)\r
* 2 * pa->npoints;\r
\r
return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(" ")) * 3 * pa->npoints;\r
-}\r
+}
\ No newline at end of file