Changes between Version 3 and Version 4 of UsersWikiNewbieDistanceMeasurement
- Timestamp:
- 12/02/09 10:39:43 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiNewbieDistanceMeasurement
v3 v4 5 5 6 6 7 ST_Distance always returns in the units of the projection .7 ST_Distance always returns in the units of the projection for the geometry data type. For the [http://www.postgis.org/documentation/manual-1.5SVN/ch08.html#PostGIS_GeographyFunctions geography data type] introduced in PostGIS 1.5 -- units are always in meters and SRID is wgs 84 long lat (4326). 8 8 9 So if for example you chose SRID 4326 - then your measurement would be in degrees. 9 So if you are using geometry - for example you chose SRID 4326 - then your measurement would be in degrees. If you use geography -- your units are in meters. 10 With geography you can do much less but you need to know less and cna cover a wider range of distance. With geometry data type you can do a lot more geometric processing, but you need to understand spatial reference systems etc and how to transform between them to get the most out of them. 10 11 11 12 It is best to use a meter based or feet based projection for measurement.