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 364 of file gbox.c.
366 const char *ptr =
str;
368 char *gbox_start = strstr(
str,
"GBOX((");
370 if ( ! gbox_start )
return NULL;
372 gbox->
xmin = strtod(ptr, &nextptr);
373 if ( ptr == nextptr )
return NULL;
375 gbox->
ymin = strtod(ptr, &nextptr);
376 if ( ptr == nextptr )
return NULL;
378 gbox->
zmin = strtod(ptr, &nextptr);
379 if ( ptr == nextptr )
return NULL;
381 gbox->
xmax = strtod(ptr, &nextptr);
382 if ( ptr == nextptr )
return NULL;
384 gbox->
ymax = strtod(ptr, &nextptr);
385 if ( ptr == nextptr )
return NULL;
387 gbox->
zmax = strtod(ptr, &nextptr);
388 if ( ptr == nextptr )
return NULL;
GBOX * gbox_new(lwflags_t flags)
Create a new gbox with the dimensionality indicated by the flags.
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
References gbox_new(), lwflags(), str, GBOX::xmax, GBOX::xmin, GBOX::ymax, GBOX::ymin, GBOX::zmax, and GBOX::zmin.