Giter VIP home page Giter VIP logo

Comments (15)

hamiltoncj avatar hamiltoncj commented on May 30, 2024

Radius is the distance from the point in terms of the unit radius which you have set to 180 meters. Is your center azimuth and azimuth width in degrees? From your screen shots I cannot tell what you are using for those two parameters other than to know that you are using an expression of some sort. I would need to know what that expression is and what your data looks like.

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

Hi, The center azimuth and the azimuth width provided in my input sheet is just an integer value in the CSV file. Since this wasn't working, I also tried providing 2 more columns with beginning azimuth and ending azimuth (delta between the 2 is 30). I assumed that the integer would be populated as degrees format (which was the case earlier when it was working).

Expression 1 (Center Azimuth) snapshot:

image

Expression 2 (Azimuth width) snapshot:

image

Also, given below is the attribute table showing the columns that are provided in my CSV file.

image

Pls feel free to seek what kind of inputs you would require from me in this subject and I would be glad to provide the same.

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

As far as I can tell you are doing everything correctly. I made a csv file of just the necessary fields and tried it myself and it worked correctly. Here is a snapshot.

image

I've attached the csv file. I guess the next question is what version of qgis are you using and on what operating system? Did you import the csv file as delimited text? I am assuming you did not save it to some other format. Are you using the latest version of the Shape Tools plugin?

towers.csv

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

Thanks for the feedback. I was also quite surprised as I have worked the same way earlier and it was just fine. I was using QGIS 3.14 (Pi) at that time and still have it. I started working on it again from last 2 weeks and somehow realized that it wasn't working like before. Suspecting that it could be compatibility issue between the plugin and the QGIS version, I had the QGIS version 3.28 (Firenze) installed 2 days back and still it was the same issue (even after uninstalling & reinstalling the plugin in both versions). Shape Tools plugin version also indicates that it is at latest (3.4.9) version.

I am using a Windows 11 OS based Dell machine and was importing the CSV file as a Delimited Text file (which is what I have been doing ever since I have been using QGIS).

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

I even tried using the Beginning & End Azimuth option with separate columns added in my input CSV file for those in addition to Center Azimuth & Beamwidth.

image

Beginning Azimuth detail snapshot:

image

Ending Azimuth detail snapshot:

image

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

The resulting output is given below if I use the Beginning & Ending Azimuth options.

image

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

Can you try the towers.csv file that I attached above and see if you get my results or something different? I don't have Windows 11 to test. Has this worked in the past with Windows 11? Is it possible to share your csv file or at least a portion that is exhibiting this behavior? I really don't know what is wrong at this point. Could you open up your python console "Plugins->Python Console" and type in these two commands and send me the results? I've never had an issue with this so I don't think there will be a problem.

import geographiclib
geographiclib.__version__

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

I tried with the CSV file that you shared with the same set of Center Azimuth & Beamwidth selections but there is no change in the output. I am still getting just like how I raised in my 1st post.

image

I will share a portion of the CSV file which I have been using with you to see if you are also getting similar issue. Then, we would be able to identify if the issue is with the input CSV file.

QGIS Sample Input.csv

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

Below is the snapshot of the commands output from the python console as you requested

image

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

We have something strange going on. If you use the Assistant it fails in the way you have shown, but if you just select the field from "Field type" it works. I don't know if this is a QGIS bug or whether there is a difference in using the assistant. Once selected from "Field type" and then you look at it with Assistant, I see no differences.

image

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

Thank you for the quick identification. I tried it the way you suggested, it just works like before. Pls have a look below at the output which I have been trying to get for the past 2 weeks. Thank you very much for the prompt response and resolution.

image

However, I noticed that there is a catch. After selecting the field "Azimuth" & "Beamwidth" through the "Field Type" option, if we click on Assistant (just to confirm if it is indeed the same as what we chose), the output again gets rendered the way I shared in my initial post. Ideally, we should just choose from the Field type and then execute the vector creation.

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

I will investigate the Assistant and see if I can figure anything out. Both methods should give the same results. I will put in a QGIS ticket if it appears to be their problem.

from qgis-shapetools-plugin.

anandarupan avatar anandarupan commented on May 30, 2024

Great, thanks for the feedback. Just now, another colleague got in touch with me with the same problem and he was surprised with the immediate fix which you had suggested. I will proceed to close this ticket if that is fine with you!

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

Go ahead and close it.

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

I took a closer look at the Assistant and it validates the input and output values. For example the Output 'from' and 'to' default to 1 and 10 so any output value less than 1 is set to 1 and any value greater than 10 is set to 10. That is way it was giving the wrong results. To use the assistant for this case you would need to set the Output 'from' and 'to' to -360 and 360 or possibly just 0 and 360 if the azimuth and beamwidth are never negative.

I'm not sure what the Input 'from' and 'to' does.

from qgis-shapetools-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.