Re: [postgis-users] st_linemerge not working with 4d coords

2014-05-12 Thread Paolo Importuni
Thanks all for your replies. I''l try to do some post-processing on the linestring as you Paul suggested. Best regards Paolo 2014-05-10 17:35 GMT+02:00 Paul Ramsey : > LineMerge is implemented via the GEOS library which, unlike PostGIS, > only understands 3 dimensions max. So the 4th is sacrifi

Re: [postgis-users] st_linemerge not working with 4d coords

2014-05-11 Thread Rémi Cura
Hey, if you want to do such basic sewing (same point for beginning/end), it should be easyer to sew by hand. If you do real line merge, (some shared part of lines are fusioned), it is more difficult has you want your data to be interpolated (what should happen if 2 shared segments have different d

Re: [postgis-users] st_linemerge not working with 4d coords

2014-05-10 Thread Paul Ramsey
LineMerge is implemented via the GEOS library which, unlike PostGIS, only understands 3 dimensions max. So the 4th is sacrificed in the process. There's no good / easy way to retain it. you could write a post-process routine that took every output vertex and compared it to the input geometry to try

[postgis-users] st_linemerge not working with 4d coords

2014-05-08 Thread Paolo Importuni
Hi everybody, I am trying to merge two linestring like in the following example: select st_astext(st_linemerge(st_collect(ST_GeomFromEWKT('LINESTRING(5 5 5 5, 10 10 10 10)'),ST_GeomFromEWKT('LINESTRING(10 10 10 10 , 15 15 15 15)'; but the output is "LINESTRING Z (5 5 5,10 10 10,15 15 15)"