Opened 5 months ago

Closed 4 months ago

#4656 closed enhancement (fixed)

Support 'geojson_text'::geometry

Reported by: Algunenano Owned by: Algunenano
Priority: medium Milestone: PostGIS 3.1.0
Component: postgis Version: master
Keywords: Cc:

Description

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).

Change History (1)

comment:1 Changed 4 months ago by Raúl Marín <git@…>

Resolution: fixed
Status: assignedclosed

In d92c6b7/git:

Support casting a geojson text to geometry

Closes https://github.com/postgis/postgis/pull/551
Closes #4656

Note: See TracTickets for help on using tickets.