[mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1
Steve Lime
sdlime at gmail.com
Fri Jul 22 12:21:57 PDT 2011
I think this is probably a reasonable fix, although I'll look into it a bit
more. I've confirmed the bug exists
outside OGC queries too. Just a simple mode=nquery triggers the segfault.
I'm not sure why we just
don't return if the layer isn't open though.
Steve
On Fri, Jul 22, 2011 at 11:38 AM, myOpenLayersUName <
joanne.mcgraw at sympatico.ca> wrote:
> While waiting for a patch which will correctly fix the problems described
> in
> this thread (OGC queries to SDE failing), we have introduced a change to
> our
> version of mapsde.c that is allowing us to move forward.
>
> In the msSDELayerFreeItemInfo function, we changed the boolean expressions
> at lines 2116 and 2121 to check that sde wasn't NULL before checking the
> basedefs and joindefs as shown below. For the time being, this is allowing
> us to continue our work with no serious problems encountered so far. If we
> do come across some, I'll be sure to let you know.
>
> Cheers,
> jtm
>
>
> void msSDELayerFreeItemInfo(layerObj *layer)
> {
> #ifdef USE_SDE
> msSDELayerInfo *sde = NULL;
> int i;
> if (!msSDELayerIsOpen(layer)) {
> msSetError( MS_SDEERR,
> "SDE layer has not been opened.",
> "msSDELayerFreeItemInfo()");
> }
> sde = layer->layerinfo;
> if (sde != NULL && sde->basedefs) {
> SE_table_free_descriptions(sde->basedefs);
> sde->basedefs = NULL;
> }
> if (sde != NULL && sde->joindefs) {
> SE_table_free_descriptions(sde->joindefs);
> sde->joindefs = NULL;
> }
> if (layer->iteminfo) {
> :
>
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110722/3d74be48/attachment.htm>
More information about the MapServer-users
mailing list