[postgis-tickets] [PostGIS] #2951: ST_Centroid for geography

PostGIS trac at osgeo.org
Fri Aug 4 13:08:31 PDT 2017


#2951: ST_Centroid for geography
--------------------------+---------------------------
  Reporter:  Mike Toews   |      Owner:  robe
      Type:  enhancement  |     Status:  new
  Priority:  medium       |  Milestone:  PostGIS 2.4.0
 Component:  liblwgeom    |    Version:
Resolution:               |   Keywords:
--------------------------+---------------------------

Comment (by robe):

 BTW when I run in pgAdmin3 I get:

 {{{
 SELECT id, ST_AsText(ST_Centroid(geog)) AS geog_cent,
 ST_AsText(ST_Centroid(geog)) As geog_cent2
 FROM geog_cent_poly_prob
 WHERE id IN( 49);
 }}}


 {{{
 49      POINT(-1.51370977193642e-226 0) ; POINT(-1.51370977193642e-226 0)
 }}}


 so I suspect that's where that huge number is coming from when computing
 distance to computed based on MA state plane meters.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/2951#comment:19>
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