Open tbonfort opened 12 years ago
Author: sgillies@frii.com Date: 2005/04/13 - 01:20
setting target to 4.6.
Author: dmorissette Date: 2005/04/13 - 01:34
I don't understand why msOWSGetLayerExtent() uses a static variable. It should
be enough to simply remove the static to solve this one.
With respect to msOWSGetEPSGProj(), to save unnecessary buffer allocations (i.e.
processing time) and to save us the code complexity of having to free() the
returned value everywhere, I would like to suggest an alternative approach: make
the function take a char * as argument to hold the result, like what we've done
for msBuildPath() for instance. e.g.
char projbuffer[MS_EPSG_BUFSIZE];
....
if (msOWSGetEPSGProj(projbuffer, &(map->projection),&(map->web.metadata),
"MO", MS_FALSE) == NULL)
{
...
Internally, msOWSGetEPSGProj() would return either a ref to the "wms_epsg"
metadata or copy the first EPSG code to projbuffer. The caller doesn't need to
worry about whether his buffer is used or not, he just needs to pass a buffer of
size MS_EPSG_BUFSIZE to the function.
Makes sense?
Author: sgillies@frii.com Date: 2006/06/02 - 04:16
won't fix.
Reporter: sgillies@frii.com Date: 2005/04/13 - 01:17