ogr geojson not writing Geometry Collection bbox
|Reported by:||wmaddox||Owned by:||warmerdam|
I noticed that when I try to save some geojson data to file, the line where the bbox should be is blank. After further study, I found that the line is actually not blank, but filled with 80 spaces. The culprit is in:
#define SPACE_FOR_BBOX 80
My bounding boxes are longer (95 chars):
"bbox": [ -109.890861747626857, 31.429616227820929, -109.890502331618748, 31.429927487647245 ]
I obviously do not need this much precision, but having to write extra code to make sure the values fall within the SPACE_FOR_BBOX value should not be necessary. In light of this, would it be possible to change the way the bbox is written to the file? Maybe create a dynamic bbox buffer rather than a fixed value of 80. If not, simply changing the SPACE_FOR_BBOX value from 80 to 100 would be acceptable.