changed function argument from shape to ogr