# Wrong Calculated distance in PostGIS

Geographic Information Systems## How do I find the distance between two points in PostGIS?

ST_Distance in PostGIS

To construct a basic query in SQL to find the distance between two points, **use the ST_Distance function**. ST_Distance is flexible in that you can pass in geometry or geography type object (see here for more information on these object types).

## What is ST_Distance?

Definition. ST_Distance **returns the distance between two geometries**. The distance is measured from the closest vertices of the two geometries.

## What is the difference between geometry and geography data in PostGIS?

PostGIS gives you a choice of two different ways to store geospatial data: Geometry, where it assumes all of your data lives on a Cartesian plane (like a map projection); Geography, where it assumes that your data is made up of points on the earth’s surface, as specified by latitudes and longitudes.

## How do you find the distance between two waypoints?

**To measure the distance between two points:**

- On your computer, open Google Maps.
- Right-click on your starting point.
- Select Measure distance.
- To create a path to measure, click anywhere on the map. To add another point, click anywhere on the map.
- When finished, on the card at the bottom, click Close .

## How do I calculate the distance between two points?

Distance between two points is **the length of the line segment that connects the two points in a plane**. The formula to find the distance between the two points is usually given by d=√((x_{2} – x_{1})² + (y_{2} – y_{1})²).

## What is Srid in geometry?

A spatial reference identifier (SRID) is **a unique identifier associated with a specific coordinate system, tolerance, and resolution**.

#### Recent

- The Earth’s Altitude Limit: Unveiling the Mystery Behind the Lack of Mountains Beyond 10 km
- Unveiling the Dynamic Dance: Exploring Tidal Flow Patterns in Estuaries
- Step-by-Step Guide: Installing ESMF and ESMFPy in Ubuntu with gfortran, gcc, and Python for Earth Science and Ocean Models
- How does salting roads help prevent ice?
- Why was there a negative temperature anomaly between 1950 to 1980?
- Comparing the Nitrogen Impact: Rain Water vs. Sprinkler Irrigation in Earth Science
- Unveiling the Ancient Breath: Tracing the History of Earth’s Oxygen Concentration
- How long could a steel artifact last?
- Exploring Geology-Focused Educational Institutions: Unveiling Earth Science’s Exclusive Academies
- Examining the Paradox: Will Earth’s Oceans Continue to Heat in a Zero Carbon Future with Rising Energy Demands?
- Shining a Light on Earth’s Reflectivity: Exploring the Impact of High Albedo vs Low Albedo on Climate Change
- Exploring the Possibility of a ‘Southern Taiga’: Unraveling the Paleoclimatological Enigma
- Unlocking the Earth’s Secrets: A Comprehensive Guide to Locating Broadband Seismic Reflection Data
- Unveiling Carbon Dioxide’s Climate Sensitivity: A Comparative Analysis of Today and the PETM Era