Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When trying to create a QgsSvgMarkerSymbolLayerV2 in the python console in QGIS, i get the following error:

Traceback (most recent call last): File "", line 1, in NameError: name 'QgsSvgMarkerSymbolLayerV2' is not defined

The first command i executed in the python console was

from qgis.core import *

After that

svgmarker = QgsSvgMarkerSymbolLayerV2()

What do i have to import to create a QgsSvgMarkerSymbolLayerV2 symbol layer?

The main purpose is to create a QgsCategorizedSymbolRendererV2 for a vector layer.

Is there a python example to this?

Is there a way to see what classes is exposed in the PyQGis API?

Is there a way to see with what version of the QGIS PyGis is linked to?

Regards Theuns Heydenrych

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.