0

Following code gets the feature which is chosen by mouse click.But I want to get list of all of the attribute name and values using script of that selected feature.Can anybody provide the method detail or API details to do so.

layer=iface.activeLayer()

selected_features=layer.selectedFeatures()
  • 1
    this question has been asked a thousand times in here ... search a bit ! – snaileater Mar 25 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.