]> granicus.if.org Git - postgis/commitdiff
Fix copy comment error
authorRegina Obe <lr@pcorp.us>
Tue, 15 Mar 2011 06:01:22 +0000 (06:01 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 15 Mar 2011 06:01:22 +0000 (06:01 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6900 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwout_x3d.c

index fca8b9681c61d9d58edc2095f0df6f64aa7a578c..77aafd47797402fb96f146421d497afcae8a6e9a 100644 (file)
@@ -201,7 +201,7 @@ asx3d3_poly_size(const LWPOLY *poly,  char *srs, int precision, int opts, const
        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
@@ -669,8 +669,7 @@ asx3d3_collection(const LWCOLLECTION *col, char *srs, int precision, int opts, c
 }\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
@@ -759,4 +758,4 @@ pointArray_X3Dsize(POINTARRAY *pa, int precision)
                       * 2 * pa->npoints;\r
 \r
        return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(" ")) * 3 * pa->npoints;\r
-}\r
+}
\ No newline at end of file