Opened 5 years ago
Closed 5 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).
Note:
See TracTickets
for help on using tickets.
In d92c6b7/git: