385 |
- Layers may optionally add to the global SRS list, or to the |
- Layers may optionally add to the global SRS list, or to the |
386 |
list inherited from a parent layer. |
list inherited from a parent layer. |
387 |
|
|
388 |
|
- A server which has the ability to transform data to |
389 |
|
different SRSes may choose not to provide an explicit |
390 |
|
BoundingBox for every possible SRS available for each Layer. |
391 |
|
Thus the list of <SRS> elements are authoritative. |
392 |
|
|
393 |
This implementation returns the list of SRS for the given |
This implementation returns the list of SRS for the given |
394 |
layer, calculated by looking at BoundingBoxes defined in the |
layer, calculated by looking at BoundingBoxes defined in the |
395 |
named layer and all layers higher in the hierarchy up to the |
named layer and all layers higher in the hierarchy up to the |
405 |
|
|
406 |
result = [] |
result = [] |
407 |
while pivot != -1: |
while pivot != -1: |
408 |
if 'bbox' in self.layers[pivot]: |
if 'srs' in self.layers[pivot]: |
409 |
for srs in self.layers[pivot]['bbox'].keys(): |
for srs in self.layers[pivot]['srs']: |
410 |
if srs not in result: |
if srs not in result: |
411 |
result.append(srs) |
result.append(srs) |
412 |
pivot = self.layers[pivot]['parent'] |
pivot = self.layers[pivot]['parent'] |