Opened 12 years ago

Closed 12 years ago

#4356 closed defect (fixed)

ogr couchdb driver does not support extents with integers

Reported by: booo Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

Seems like the LoadMetaData function of the ogr couchdb driver does not support extents with integer values. See code block below. Maybe one should add integer support?

Please take a look at ogrcouchdbtablelayer.cpp

  if (poUpdateSeq && poBbox &&
                    json_object_get_type(poBbox) == json_type_array &&
                    json_object_array_length(poBbox) == 4 &&
                    json_object_get_type(json_object_array_get_idx(poBbox, 0)) == json_type_double &&
                    json_object_get_type(json_object_array_get_idx(poBbox, 1)) == json_type_double &&
                    json_object_get_type(json_object_array_get_idx(poBbox, 2)) == json_type_double &&
                    json_object_get_type(json_object_array_get_idx(poBbox, 3)) == json_type_double)
                {
                    dfMinX = json_object_get_double(json_object_array_get_idx(poBbox, 0));
                    dfMinY = json_object_get_double(json_object_array_get_idx(poBbox, 1));
                    dfMaxX = json_object_get_double(json_object_array_get_idx(poBbox, 2));
                    dfMaxY = json_object_get_double(json_object_array_get_idx(poBbox, 3));
                    bExtentValid = bExtentSet = TRUE;
                }

Change History (1)

comment:1 by Even Rouault, 12 years ago

Resolution: fixed
Status: newclosed

r23437 /trunk/gdal/ogr/ogrsf_frmts/couchdb/ogrcouchdbtablelayer.cpp: CouchDB: also accept integer values for layer extent (#4356)

Note: See TracTickets for help on using tickets.