[mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1

Steve Lime sdlime at gmail.com
Thu Jul 21 11:08:25 PDT 2011


First, thanks for taking the time to dig into this, we appreciate the help.
Indeed there
were large changes between 5.6 and 6.0 due to some overall changes in the
parser
and query handling. I wouldn't have thought they would introduce any issues
specific
to a particular driver though.

It may be that the SDE code needs to simply be made more robust. If I supply
a patch
that does that can you test?

Steve

On Thu, Jul 21, 2011 at 12:00 PM, myOpenLayersUName <
joanne.mcgraw at sympatico.ca> wrote:

> I've done some additional debugging and have learned that the mapwfs.c's
> msWFSGetFeature has changed significantly between 5.6.3 and 6.0.1. In
> particular, the problem seems to be starting at line 2457 in the 6.0.1 code
> (1248 in 5.6.3). At that point, a call to msOWSGetLayerExtent is made and
> part of that process creates and frees a connection to SDE. That is the
> first connection that is identified in the above posts (and in Michelle
> Douvil's post discussing her GDB findings).
>
> The second SDE connection is not made in 6.0.1 because, at line 2500 (still
> in mapwfs.c's), there is a call to msQueryByRect(map) which did not happen
> in 5.6.3. In that function (msQueryByRect), at line 1024, there is a
> msLayerClose(lp) call that ultimately takes us to the
> msSDELayerFreeItemInfo
> where the layer->layerinfo (and therefore the sde variable at line 2116) is
> already null because of the previous close (in the msOWSGetLayerExtent
> process) and so the "if (sde->basedefs)" condition gives a segmentation
> fault because it's trying to access a property in an object that doesn't
> exist.
>
> I really don't know anything about any of this code but know that what I
> describe is definitely what is happening as far as I can observe. I am
> hoping that someone who knows more about the code can identify whether
> there
> is a problem with the source code related to all this. And, if so, should I
> be putting something in the DEV forum about this?
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6607659.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/20110721/c69577e1/attachment.htm>


More information about the MapServer-users mailing list