Ticket #1426 (closed defect: duplicate)

Opened 3 years ago

Last modified 1 year ago

EPSG lookup done for all layers

Reported by: banders@refractions.net Assigned to: dmorissette
Priority: normal Milestone: 5.0 release
Component: MapServer CGI Version: 4.5
Severity: normal Keywords:
Cc: dmorissette

Description (Last modified by dmorissette)

For each WMS GetMap? request, Mapserver appears to fully resolve all projection definitions in the .map file, even for layers that aren't involved in the GetMap? request.

This isn't a huge problem when projections are fully defined within each .map file layer. But when using "init=EPSG" syntax, Mapserver will go to the Proj "epsg" file once for each layer.

The issue is speed. My experiments have shown that this slows down GetMap? responses by a few hundred milliseconds to a few seconds (depending on the number of layers and the placement of the projection definition within the "epsg" file.

Possible solutions:

a) only resolve EPSG codes for layers that are involved in the current map request

b) cache the projection definitions, so we don't need to go to the "epsg" file for every layer

Change History

07/13/07 12:15:48 changed by warmerdam

  • priority changed from high to normal.
  • cc set to dmorissette.
  • description changed.

Daniel,

Did you mention you were going to work on optimizing proj.4 projection lookups for mapserver?

07/17/07 09:52:42 changed by dmorissette

  • status changed from new to assigned.
  • owner changed from warmerdam to dmorissette.
  • description changed.
  • milestone set to 5.0 release.

Yes, this is one of the things I would like to do for 5.0... let's see if I'll have time to do it by the feature freeze date.

08/01/07 11:25:09 changed by dmorissette

  • status changed from assigned to closed.
  • resolution set to duplicate.

There is already ticket #1976 addressing this. Closing as duplicate.