[postgis-devel] Adding 4D support to asGeoJson
Paul Ramsey
pramsey at cleverelephant.ca
Tue Jan 30 15:09:35 PST 2018
Approach in the code looks fine to me.
P
> On Jan 30, 2018, at 3:00 PM, Alexandre Lessard <alessard at mapgears.com> wrote:
>
> 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.
>
> Alex L.
>
> On 2018-01-30 17:25, Paul Ramsey wrote:
>> https://tools.ietf.org/html/rfc7946#section-3.1.1
>>
>> "Implementations SHOULD NOT extend positions beyond three elements
>> because the semantics of extra elements are unspecified and
>> ambiguous."
>>
>> Do we really want to go there?
>>
>> P
>>
>> On Tue, Jan 30, 2018 at 2:13 PM, Alexandre Lessard
>> <alessard at mapgears.com> wrote:
>>> Hi,
>>>
>>> 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
>>> https://github.com/belug23/postgis/compare/svn-trunk...belug23-4d-geojson
>>>
>>> Thanks.
>>>
>>> Alexandre Lessard
>>>
>>>
>>> _______________________________________________
>>> postgis-devel mailing list
>>> postgis-devel at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/postgis-devel
>> _______________________________________________
>> postgis-devel mailing list
>> postgis-devel at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/postgis-devel
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list