Opened 12 years ago

Closed 12 years ago

Last modified 12 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 12 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 12 years ago by christoph

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

Changed 12 years ago by christoph

Attachment: patch_123.txt added

comment:3 Changed 12 years ago by christoph

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