Opened 7 years ago

Closed 7 years ago

#4006 closed enhancement (fixed)

Be nice to have JSON overload for ST_GeomFromGeoJSON

Reported by: pauldzy Owned by: robe
Priority: low Milestone: PostGIS 2.5.0
Component: postgis Version: 2.4.x
Keywords: ST_GeomFromGeoJSON Cc:

Description

it would be nice and match user expectations better if the ST_GeomFromGeoJSON function also accepted JSON and JSONB inputs as overloads.

Whether or not the internals truly do more than cast to text is probably not critical - or perhaps something that could be sorted out later. As you need 9.2 for JSON this would only apply to PostGIS 2.3 and later.

Thanks for the consideration,

Paul

Change History (6)

comment:1 by pramsey, 7 years ago

Resolution: fixed
Status: newclosed

Done in trunk at r16374

comment:2 by robe, 7 years ago

Milestone: PostGIS 2.4.4PostGIS 2.5.0

comment:3 by robe, 7 years ago

Resolution: fixed
Status: closedreopened

This needs a news and doco update. Getting lazy in your old age :)

comment:4 by robe, 7 years ago

Yeh just occurred to me that since this commit, we now can no longer support 9.4. Yeh now I can official remove support for 9.3.

Version 0, edited 7 years ago by robe (next)

comment:5 by robe, 7 years ago

Owner: changed from pramsey to robe
Status: reopenednew

comment:6 by robe, 7 years ago

Resolution: fixed
Status: newclosed

In 16540:

Add doc notes, NEWS, and regress tests for json/jsonb (also add missing credits to NEWS)
Closes #4006 for 2.5.0

Note: See TracTickets for help on using tickets.