[MacPorts] #55244: postgis2 2.3.2: make postgis function "ST_GeomFromGeoJSON" work by adding the json-c port as dependency
MacPorts
noreply at macports.org
Sun Nov 5 13:14:29 UTC 2017
#55244: postgis2 2.3.2: make postgis function "ST_GeomFromGeoJSON" work by adding
the json-c port as dependency
-------------------------+----------------------
Reporter: mjl- | Owner:
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: haspatch | Port: postgis2
-------------------------+----------------------
Currently, the postgis function ST_GeomFromGeoJSON fails with an error.
See below:
{{{
testdb=> select ST_GeomFromGeoJSON('{"type": "Point", "coordinates":
[-105.01621, 39.57422]}');
ERROR: You need JSON-C for ST_GeomFromGeoJSON
}}}
To reproduce the above error, run the query in any database that has the
postgis extension installed ("create extension postgis;").
After applying the attached diff and running ST_GeomFromGeoJSON again:
{{{
testdb=> select ST_GeomFromGeoJSON('{"type": "Point", "coordinates":
[-105.01621, 39.57422]}');
st_geomfromgeojson
--------------------------------------------
010100000090F7AA9509415AC0C45A7C0A80C94340
(1 row)
}}}
Attached is an updated Portfile and a diff taking you from current/old
Portfile to the attached Portfile.
From what I can gather from earlier trac tickets, postgis+json-c builds
were broken in the past. However, that was a long time ago and no longer
the case:
https://lists.macports.org/pipermail/macports-
users/2014-August/036085.html
https://trac.macports.org/ticket/44124
I only tested this version/variant: postgis2
@2.3.2_0+postgresql96+raster+topology
--
Ticket URL: <https://trac.macports.org/ticket/55244>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list