Thursday, 7 January 2016

qgis - Showing antenna symbols on the map: point symbols or features (polygons)


I want to show a cellular network on a map. Input data is a .csv file where each string is a cellular sector. The attributes are: sector id, its coordinates, its azimuth and an angle of antenna beam width.


Antenna beam width values are in a range of 30 to 360 degrees. 360 antenna beam width means that it must be shown on the map as a circle. Antennas with other beam widths must be shown as a sectors with appropriate aperture angles.


enter image description here


Is it possible to show the antennas using symbols only? I know how to create my own SVG symbol and hope to find how to rotate it according to the azimuth. But is there any way to apply variable antenna beam width according to its attribute value from 30 to 360 degrees?



I think the symbols are the best way to draw the antennas because of dynamic visualization on the map according to the scale of view, if this way is possible in QGIS.


Of course, the task can be solved by drawing appropriate polygons as a layer feature, but that would be a workaround solution.



Answer



A few days ago a new plugin was added to QGIS called Wedge Buffer Processing Algorithm. This looks as if it might be of interest.


As the name suggests it's a processing algorithm, so you'll need to run it from the processing toolbox. Not had a chance to try it yet though.


It creates sectors of circles - like a normal circular buffer, but the wedge angle and radius can be set using field values.


Documentation and screenshots can be seen on the github page


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...