Ticket #15378: layermapping.patch

File layermapping.patch, 736 bytes (added by Lucio Asnaghi, 13 years ago)

add one more except to catch OGR exceptions in layermapping

  • .py

    old new  
    520520                    if strict: raise
    521521                    elif not silent:
    522522                        stream.write('Ignoring Feature ID %s because: %s\n' % (feat.fid, msg))
     523                except OGRException, msg:
     524                    # Something borked in the OGR get geometry ref
     525                    if strict: raise
     526                    elif not silent:
     527                        stream.write('Ignoring Feature ID %s because of OGR error: %s\n' % (feat.fid, msg))
    523528                else:
    524529                    # Constructing the model using the keyword args
    525530                    is_update = False
Back to Top