Ticket #656: osmchangereaderv5.patch

File osmchangereaderv5.patch, 993 bytes (added by jrreid@…, 12 years ago)

patch file

  • OsmChangeReaderV5.pm

     
    215215      else  # FILETYPE_OSM
    216216      {
    217217        # Only entities with a modify tag are interesting, or if they have a negative ID (that's create)
    218         if( exists $self->{attr}->{action} )
     218        if( $self->{attr}{id} < 0 )
    219219        {
     220          $self->_process( "create", $self->{entity}, $self->{attr}, $self->{tags}, $self->{members} );
     221        }elsif( exists $self->{attr}->{action} )
     222        {
    220223          $self->_process( $self->{attr}->{action}, $self->{entity}, $self->{attr}, $self->{tags}, $self->{members} );
    221224        }
    222         elsif( $self->{attr}{id} < 0 )
    223         {
    224           $self->_process( "create", $self->{entity}, $self->{attr}, $self->{tags}, $self->{members} );
    225         }
    226225      }
    227226      $self->{count}++;
    228227      if( $self->{progress} and ($self->{count}%11) == 1)