Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6998641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:26:13+00:00 2026-05-27T20:26:13+00:00

i am working on some camera data. I have some points which consist of

  • 0

i am working on some camera data. I have some points which consist of azimuth, angle, distance, and of course coordinate field attributes. In postgresql postgis I want to draw shapes like this with functions.

how can i draw this pink range shape?
at first should i draw 360 degree circle then extracting out of my shape… i dont know how?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:26:13+00:00Added an answer on May 27, 2026 at 8:26 pm

    I would create a circle around the point(x,y) with your radius distance, then use the info below to create a triangle that has a larger height than the radius.

    Then using those two polygons do an ST_Intersection between the two geometries.

    NOTE: This method only works if the angle is less than 180 degrees.

    Note, that if you extend the outer edges and meet it with a 90 degree angle from the midpoint of your arc, you have a an angle, and an adjacent side. Now you can SOH CAH TOA!

    Extend and make right triangles

    Get Points B and C

    Let point A = (x,y)

    To get the top point:

    point B = (x + radius, y + (r * tan(angle)))

    to get the bottom point:

    point C = (x + radius, y – (r * tan(angle)))

    Rotate your triangle to you azimouth

    Now that you have the triangle, you need to rotate it to your azimuth, with a pivot point of A. This means you need point A at the origin when you do the rotation. The rotation is the trickiest part. Its used in computer graphics all the time. (Actually, if you know OpenGL you could get it to do the rotation for you.)

    NOTE: This method rotates counter-clockwise through an angle (theta) around the origin. You might have to adjust your azimuth accordingly.

    First step: translate your triangle so that A (your original x,y) is at 0,0. Whatever you added/subtracted to x and y, do the same for the other two points.

    (You need to translate it because you need point A to be at the origin)

    Second step: Then rotate points B and C using a rotation matrix. More info here, but I’ll give you the formula:

    Rotation matrix

    Your new point is (x', y')
    

    Do this for points B and C.

    Third step: Translate them back to the original place by adding or subtracting. If you subtracted x last time, add it this time.

    Finally, use points {A,B,C} to create a triangle.

    And then do a ST_Intersection(geom_circle,geom_triangle);

    Because this takes a lot of calculations, it would be best to write a program that does all these calculations and then populates a table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with some US govt data which has a lengthy list of
I am working with some larger vertice values which I have parsed from a
I have been working on some legacy C++ code that uses variable length structures
I am working on an app, in which i need to stop some functionality
I am working with some matlab code that processes data (in a Kalman Filter)
I'm currently working on a WPF/C# application which is connected to an external camera.
Working on some tweaks for a build script, I noticed that the output from
When working with some open source projects (in my case Joomla and Moodle), I've
Whilst working on some generally horrible Javascript code this morning, I came across the
I'm working on some production software, using C# on the .NET framework. I really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.