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

myOpenLayersUName joanne.mcgraw at SYMPATICO.CA
Thu Jul 21 13:00:47 EDT 2011


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.


More information about the mapserver-users mailing list