[postgis-devel] Adding 4D support to asGeoJson
alessard at mapgears.com
Tue Jan 30 15:00:21 PST 2018
The original GeoJson spec allowed it and openlayers already treats the
fourth dimension as the measure, using a XYZM layout.
I can't think of better way to pass the M data from postgis to a client
app such as openlayers than through GeoJson.
On 2018-01-30 17:25, Paul Ramsey wrote:
> "Implementations SHOULD NOT extend positions beyond three elements
> because the semantics of extra elements are unspecified and
> Do we really want to go there?
> On Tue, Jan 30, 2018 at 2:13 PM, Alexandre Lessard
> <alessard at mapgears.com> wrote:
>> we are looking into using POINT4D points with Postgis, but we need to
>> communicate in GeoJson. We've looked into the code and we'd like to know if
>> adding an other condition using "if (!FLAGS_GET_M(pa->flags))"" in
>> liblwgeom/lwout_geojson.c function pointArray_to_geojson() to support the
>> fourth dimension would be the best option?
>> Here's an example of what we would do
>> Alexandre Lessard
>> postgis-devel mailing list
>> postgis-devel at lists.osgeo.org
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
More information about the postgis-devel