[postgis-tickets] [PostGIS] #3588: Incorrect distance calculation

PostGIS trac at osgeo.org
Thu Jun 23 06:14:35 PDT 2016


#3588: Incorrect distance calculation
-----------------------+---------------------------
  Reporter:  przemekp  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 2.2.3
 Component:  postgis   |    Version:  2.2.x
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by pramsey):

 If you put the coordinates in the correct order, that's exactly what you
 get
 {{{
 SELECT ST_Distance(
 ST_GeographyFromText('SRID=4326;POINT(18.0644893646 59.3327903748)'),
 ST_GeographyFromText('SRID=4326;POINT(18.0704 59.3362)')
 )

   st_distance
 ---------------
  507.395146393
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3588#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list