[postgis-tickets] [PostGIS] #4656: Support 'geojson_text'::geometry

PostGIS trac at osgeo.org
Mon Mar 30 10:36:30 PDT 2020


#4656: Support 'geojson_text'::geometry
-------------------------+---------------------------
 Reporter:  Algunenano   |      Owner:  Algunenano
     Type:  enhancement  |     Status:  assigned
 Priority:  medium       |  Milestone:  PostGIS 3.1.0
Component:  postgis      |    Version:  master
 Keywords:               |
-------------------------+---------------------------
 As suggested by Felix Kunde in the mail list, having geometry::json::text
 has created the need to be able to do the reverse, that is, parse
 automagically a geojson text into a geometry:

 {{{
 SELECT '{"type":"Point","coordinates":[1,1]}'::geometry
 }}}

 As long as `{` isn't a valid character in the other formats that we
 currently support as input (EWKT, HEXWKB, WKT), adding this piece of magic
 should be simple (make LWGEOM_in call lwgeom_from_geojson).

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4656>
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