Warning, do not use this function, it is very particular about inputs.
Warning, do not use this function, it is very particular about inputs.
Definition at line 371 of file g_box.c.
373 const char *ptr = str;
375 char *gbox_start = strstr(str,
"GBOX((");
377 if ( ! gbox_start )
return NULL;
379 gbox->
xmin = strtod(ptr, &nextptr);
380 if ( ptr == nextptr )
return NULL;
382 gbox->
ymin = strtod(ptr, &nextptr);
383 if ( ptr == nextptr )
return NULL;
385 gbox->
zmin = strtod(ptr, &nextptr);
386 if ( ptr == nextptr )
return NULL;
388 gbox->
xmax = strtod(ptr, &nextptr);
389 if ( ptr == nextptr )
return NULL;
391 gbox->
ymax = strtod(ptr, &nextptr);
392 if ( ptr == nextptr )
return NULL;
394 gbox->
zmax = strtod(ptr, &nextptr);
395 if ( ptr == nextptr )
return NULL;
GBOX * gbox_new(uint8_t flags)
Create a new gbox with the dimensionality indicated by the flags.
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
References gbox_new(), gflags(), GBOX::xmax, GBOX::xmin, GBOX::ymax, GBOX::ymin, GBOX::zmax, and GBOX::zmin.