Skip to main content
added 8 characters in body
Source Link
ahmadhanb
  • 41.4k
  • 5
  • 54
  • 109

I'm trying to use the "Rectangles, ovals, diamonds (variable)" processing tool, using QGIS 3.0. One of the fields in my attribute table is a number going from 0 to 359 which is a reference to the "heading" direction of each point (meaning degrees..).

When I try to use this column as the Rotation field in the tool I get an error:

Traceback (most recent call last): File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 119, in processAlgorithm self.rectangles(sink, source, width, height, rotation, feedback) File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 145, in rectangles feedback.pushInfo(QCoreApplication.translate('RectanglesOvalsDiamondsVariable', 'Feature {} has empty ' NameError: name 'QCoreApplication' is not defined

Execution failed after 0.01 seconds

Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 119, in processAlgorithm
self.rectangles(sink, source, width, height, rotation, feedback)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 145, in rectangles
feedback.pushInfo(QCoreApplication.translate('RectanglesOvalsDiamondsVariable', 'Feature {} has empty '
NameError: name 'QCoreApplication' is not defined

Execution failed after 0.01 seconds

It will accept various other fields as the Rotation field, most being random numbers. I've tried changing the type of my field from double to Integer and Int64 using the Refactoring Fields tool, but still the same issue.

Thanks, Anthony

I'm trying to use the "Rectangles, ovals, diamonds (variable)" processing tool, using QGIS 3.0. One of the fields in my attribute table is a number going from 0 to 359 which is a reference to the "heading" direction of each point (meaning degrees..).

When I try to use this column as the Rotation field in the tool I get an error:

Traceback (most recent call last): File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 119, in processAlgorithm self.rectangles(sink, source, width, height, rotation, feedback) File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 145, in rectangles feedback.pushInfo(QCoreApplication.translate('RectanglesOvalsDiamondsVariable', 'Feature {} has empty ' NameError: name 'QCoreApplication' is not defined

Execution failed after 0.01 seconds

It will accept various other fields as the Rotation field, most being random numbers. I've tried changing the type of my field from double to Integer and Int64 using the Refactoring Fields tool, but still the same issue.

Thanks, Anthony

I'm trying to use the "Rectangles, ovals, diamonds (variable)" processing tool, using QGIS 3.0. One of the fields in my attribute table is a number going from 0 to 359 which is a reference to the "heading" direction of each point (meaning degrees..).

When I try to use this column as the Rotation field in the tool I get an error:

Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 119, in processAlgorithm
self.rectangles(sink, source, width, height, rotation, feedback)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 145, in rectangles
feedback.pushInfo(QCoreApplication.translate('RectanglesOvalsDiamondsVariable', 'Feature {} has empty '
NameError: name 'QCoreApplication' is not defined

Execution failed after 0.01 seconds

It will accept various other fields as the Rotation field, most being random numbers. I've tried changing the type of my field from double to Integer and Int64 using the Refactoring Fields tool, but still the same issue.

Source Link
anthonyB
  • 335
  • 1
  • 9

QGIS 3.0 Issue with rotation using Rectangles, ovals, diamonds (variable) processing tool

I'm trying to use the "Rectangles, ovals, diamonds (variable)" processing tool, using QGIS 3.0. One of the fields in my attribute table is a number going from 0 to 359 which is a reference to the "heading" direction of each point (meaning degrees..).

When I try to use this column as the Rotation field in the tool I get an error:

Traceback (most recent call last): File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 119, in processAlgorithm self.rectangles(sink, source, width, height, rotation, feedback) File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RectanglesOvalsDiamondsVariable.py", line 145, in rectangles feedback.pushInfo(QCoreApplication.translate('RectanglesOvalsDiamondsVariable', 'Feature {} has empty ' NameError: name 'QCoreApplication' is not defined

Execution failed after 0.01 seconds

It will accept various other fields as the Rotation field, most being random numbers. I've tried changing the type of my field from double to Integer and Int64 using the Refactoring Fields tool, but still the same issue.

Thanks, Anthony