[mapserver-dev] Implement msPostgisLayerGetExtent
Tamas Szekeres
szekerest at gmail.com
Tue Dec 31 08:45:28 PST 2013
2013/12/31 thomas bonfort <thomas.bonfort at gmail.com>
> Steve,
> This function is called to produce the capabilities document, in order
> to provide the client with information as to what the extent for each
> layer is. The provided patch is wanted/usefull, because some clients
> (namely qgis) are smart and will not request layers for extents that
> are outside the advertised extents; in the case where the advertized
> extents are incorrect then you can imagine that this leads to
> difficult to debug unexpected behavior. On the other hand, the
> provided patch is problematic because it may cause capabilities
> requests to take minutes or more to complete given that the st_extent
> call may take ages to complete. The simple workaround is to add an
> EXTENT to each layer, however this requires a manual intervention and
> was not needed beforehand.
>
>
That was not needed by the Postgis driver, but needed for the other drivers
where getExtent has already been implemented. I would not agree to keep
this kind of differences between the drivers. Either have this implemented
for all or for none of them.
As far as I can see in the discussion, a global setting to disable the
driver extent calculation for the GetCapabilities request would be a good
consensus, isn't it?
Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20131231/5c82e245/attachment.html>
More information about the mapserver-dev
mailing list