Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#675 closed defect (fixed)

Create ST_AsEWKT for geography or harmonize ST_AsText for geometry

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

We don't have an ST_AsEWKT for geography though the ST_AsText for geography behaves more like our ST_AsEWKT for geometry.

Note our ST_AsText for geometry doesn't output Z etc, but our ST_AsText for geography does. This inconsistency is driving me batty.

Change History (4)

comment:1 by pramsey, 13 years ago

Duplicates #287. See discussion (or lack thereof) on postgis-devel

comment:2 by strk, 13 years ago

ST_AsText for geometry _now_ outputs ZM. Still EWKT outputs SRID, while ST_AsText(geography) doesn't. Should ST_AsEWKT(geography) do anything more than casting geography to geometry and use ST_AsEWKT ?

comment:3 by strk, 13 years ago

Resolution: fixed
Status: newclosed

Done with r8844

comment:4 by strk, 13 years ago

NOTE: r8845 also adds the signature for TEXT input, fixing the testsuite (use of literals).

Note: See TracTickets for help on using tickets.