Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • H hazdev-geoserve-ws
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ghsc
  • Hazards Development Team
  • hazdev-geoserve-ws
  • Merge requests
  • !203

Update azimuth to be calculated _from_ feature _to_ center point

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Jeremy M Fee requested to merge github/fork/jmfee-usgs/fix-azimuth into master Nov 01, 2018
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

https://earthquake.usgs.gov/ws/geoserve/places.php reports azimuth to be:

azimuth = Direction (in decimal degrees [0, 360]) from the Feature to the center point (latitude, longitude).

Below are attached example queries before this change. These can be pasted into https://geojson.io , the red point is the search point and others are results. Note the azimuth currently is reported from the center point to the feature point; so it is off by 180 degrees.

utah_geoserve.txt ca_geoserve.txt

The ST_Azimuth is less than clear, but the images provide an explanation https://postgis.net/docs/ST_Azimuth.html

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/jmfee-usgs/fix-azimuth