Ignore:
Timestamp:
Feb 22, 2010 2:04:18 PM (7 years ago)
Author:
colivier
Message:

Fix #441. And introduce a change in behaviour: if geometryCollection and bbox, not sub geoms bbox are provided anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/liblwgeom/lwout_geojson.c

    r5296 r5311  
    11/**********************************************************************
    2  * $Id:$
     2 * $Id$
    33 *
    44 * PostGIS - Spatial Types for PostgreSQL
     
    570570                subgeom = lwgeom_getsubgeometry_inspected(insp, i);
    571571                subinsp = lwgeom_inspect(subgeom);
    572                 size += asgeojson_inspected_size(subinsp, bbox, precision);
     572                size += asgeojson_inspected_size(subinsp, NULL, precision);
    573573                lwinspected_release(subinsp);
    574574        }
     
    597597                subgeom = lwgeom_getsubgeometry_inspected(insp, i);
    598598                subinsp = lwgeom_inspect(subgeom);
    599                 ptr += asgeojson_inspected_buf(subinsp, ptr, bbox, precision);
     599                ptr += asgeojson_inspected_buf(subinsp, ptr, NULL, precision);
    600600                lwinspected_release(subinsp);
    601601        }
     
    679679        char *ptr=output;
    680680
    681         /* Compute 3D BBOX on the sub geometry */
    682         if ( bbox )
    683         {
    684                 lwfree(bbox);
    685                 bbox = NULL;
    686                 bbox = compute_serialized_box3d(
    687                            lwgeom_getsubgeometry(insp->serialized_form, 0));
    688         }
    689 
    690681        switch (type)
    691682        {
Note: See TracChangeset for help on using the changeset viewer.