NationalSecurityAgency / qgis-shapetools-plugin

Shape Tools creates geodesic shapes and includes a number of geodesic tools for QGIS including the XY to Line tool, geodesic densify tool, geodesic line break, geodesic measure tool, geodesic measurement layer, geodesic scale, rotate and translate tool, and digitize points at an azimuth & distance tools.
GNU General Public License v2.0
154 stars 68 forks source link

Create pie wedge failure when run from processing toolbox #23

Closed aprobinson3 closed 6 years ago

aprobinson3 commented 6 years ago

Hi,

Thank you so much for this plugin it really is excellent!

I am receiving the following error when Creating a pie wedge from processing toolbox, however when I use the same settings via the plugin it works fine.

**Processing algorithm… Algorithm 'Create pie wedge' starting… Input parameters: { 'Azimuth1Field' : 'Azimuth', 'Azimuth2Field' : 'Beamwidth', 'AzimuthMode' : 1, 'DefaultAzimuth1' : 0, 'DefaultAzimuth2' : 30, 'DefaultRadius' : 20, 'DrawingSegments' : 36, 'InputLayer' : 'file:///C:/Users/xxx/Documents/QGIS/Drawing%20Sectors/LTE%20Sectors.csv?type=csv&xyDms=yes&xField=Longitude&yField=Latitude&crs=EPSG:4326&spatialIndex=yes&subsetIndex=no&watchFile=no', 'OutputLayer' : 'memory:', 'RadiusField' : 'Sector Radius', 'ShapeType' : 0, 'UnitsOfMeasure' : 1 }

Traceback (most recent call last): File "C:/Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\shapetools\createPie.py", line 237, in processAlgorithm if index % 100 == 0: NameError: name 'index' is not defined

Execution failed after 0.03 seconds

Loading resulting layers Algorithm 'Create pie wedge' finished**

Attached are screenshots of the settings used:

wedge_plugin

wedge_proc_toolbox

Thanks for your help!

hamiltoncj commented 6 years ago

@aprobinson3 Sorry about that. I have fixed the bug and it is in version 3.1.2. I just uploaded it to the QGIS plugin directory. It may take up to 30 minutes before they update the plugin listing.

hamiltoncj commented 6 years ago

@aprobinson3 It now shows up in the QGIS plugin manager.

aprobinson3 commented 6 years ago

Thank you very much for the quick fix! I've just downloaded it and it works great!