Skip to main content
edited tags
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

How do I get the Getting distance meter value between two geometries in PostGIS?

I have a simple question about calculating distances inam using PostGIS.

I would like to get the distance between two geometries. I am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ... but I am getting result in degrees. 

I think that I should work with geography but how can I cast a geom to a geography? 

I tried with (a.geom::geography) but i am getting an error.

What can I do to get my result in meters?

Thank You

How do I get the distance meter value between two geometries in PostGIS?

I have a simple question about calculating distances in PostGIS.

I would like to get the distance between two geometries. I am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ... but I am getting result in degrees. I think that I should work with geography but how can I cast a geom to a geography? I tried with (a.geom::geography) but i am getting an error.

What can I do to get my result in meters?

Thank You

Getting distance meter value between two geometries in PostGIS

I am using PostGIS.

I would like to get the distance between two geometries. I am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ... but I am getting result in degrees. 

I think that I should work with geography but how can I cast a geom to a geography? 

I tried with (a.geom::geography) but i am getting an error.

What can I do to get my result in meters?

Tweeted twitter.com/#!/StackGIS/status/193023153809801217
edited tags
Link
Stev_k
  • 6.7k
  • 2
  • 35
  • 48
grammar, code format
Source Link
CaptDragon
  • 13.4k
  • 7
  • 55
  • 96

How do I get the distance meter value between geomtwo geometries in meters postgisPostGIS?

iI have a simple question about calculating distances in postgisPostGIS.

iI would like to get the distance between two geom igeometries. I am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ...ST_Distance((a.geom,b.geom)) FROM ... but iI am getting result in degree idegrees. I think that iI should work with geography but how can iI cast a geom to a geography i? I tried with (a.geom::geography) but i am getting an error.

howWhat can iI do for gettingto get my result in meters?

thank youThank You

get distance between geom in meters postgis

i have a simple question about calculating distances in postgis

i would like to get distance between two geom i am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ... but i am getting result in degree i think that i should work with geography but how can i cast a geom to a geography i tried with (a.geom::geography) but i am getting an error

how can i do for getting my result in meters?

thank you

How do I get the distance meter value between two geometries in PostGIS?

I have a simple question about calculating distances in PostGIS.

I would like to get the distance between two geometries. I am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ... but I am getting result in degrees. I think that I should work with geography but how can I cast a geom to a geography? I tried with (a.geom::geography) but i am getting an error.

What can I do to get my result in meters?

Thank You

Source Link
YassineGeoma
  • 435
  • 1
  • 3
  • 8
Loading