[postgis-users] msPOSTGISLayerCLose() called twice
David Blasby
dblasby at refractions.net
Wed Aug 13 09:14:32 PDT 2003
Daniel Morissette wrote:
> I don't think it's right for the pooling code to call close a second
> time, but it wouldn't hurt anyway to modify msPOSTGISLayerClose() to
> check if the layer is still open before closing it. From MapScript it's
> possible for a script to call $layer->close() twice, a mistake that will
> be very common in scripts I'm sure, so it would be better if calling
> close twice didn't crash the server but instead either returned silently
> or produced an error.
msPOSTGISLayerClose() doesnt do anything if the layer is already close.
I just though this was quite strange that it was getting called more
than it ought to have. I looked like an indication of a larger problem.
Also, whats an itemnquery supposed to do (from the perspective of the
layer)?
dave
More information about the postgis-users
mailing list