Opened 4 years ago

Closed 4 years 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 by Raúl Marín <git@…>, 4 years ago

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.