Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#123 closed defect (fixed)

Parsing WMS Capabilities Doc with duplicate SRS entries fails

Reported by: christoph Owned by: mapbender_dev@…
Priority: major Milestone: 2.4.4 release
Component: wms Version: 2.4.2
Keywords: srs, epsg, wms Cc:

Description

ERROR: duplicate key violates unique constraint "pk_wms_srs"

Attachments (1)

patch_123.txt (595 bytes ) - added by christoph 16 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by christoph, 17 years ago

Resolution: fixed
Status: newclosed

in /classes/class_wms.php change the function createObjFromXML (in revision 1719 line 438)

$this->wms_srs = explode (" ", $this->objLayer[0]->wms_srs1);

replace by

$this->wms_srs = array_keys( array_flip(explode (" ", $this->objLayer[0]->wms_srs1)));

a patch will follow

by christoph, 16 years ago

Attachment: patch_123.txt added

comment:3 by christoph, 16 years ago

Milestone: 2.5 release2.4.4 release
Note: See TracTickets for help on using tickets.