Skip to content

Commit

Permalink
Allowing two tags to have the same value
Browse files Browse the repository at this point in the history
The following change would remove the check that's preventing two tags from having the same value (as described at pear#14 )
  • Loading branch information
Maturion authored Mar 1, 2017
1 parent 434efea commit c5b9f05
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Services/OpenStreetMap/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,8 @@ public function getOsmChangeXml()
}
$tags = $xpath->query("//{$type}/tag");

$set = array();
for ($i = 0; $i < $tags->length; $i++) {
$key = $tags->item($i)->getAttribute('k');
$val = $tags->item($i)->getAttribute('v');
$set[$key] = $val;
}

$diff = array_diff($this->getTags(), $set);

$diff = $this->getTags();

// Remove existing tags
for ($i = 0; $i < $tags->length; $i++) {
Expand Down

0 comments on commit c5b9f05

Please sign in to comment.