Bug report #9032

LINESTRINGM not displayed

Added by Regis Haubourg almost 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17687

Description

Hi ,
in current Master, LINESTRINGM object are not diplayed when they are in 2.0.
I didn't check if other 3d geometries are concerned.
Cheers
Régis


Related issues

Related to QGIS Application - Bug report #9651: PostGIS polyhedral and TIN layers not handled anymore Closed 2014-02-25
Related to QGIS Application - Bug report #9748: PostGIS table loads but won't display. Closed 2014-03-08
Related to QGIS Application - Bug report #12310: Inconsistent handling of 3D and 4D postgis data Closed 2015-03-04

Associated revisions

Revision 85f6fb8b
Added by Jürgen Fischer over 5 years ago

postgres provider: convert M to Z geometries (fixes #9032)

History

#1 Updated by Jürgen Fischer almost 6 years ago

  • Subject changed from LINESTRINGM not diplayed to LINESTRINGM not displayed

#2 Updated by Martin Dobias over 5 years ago

I cannot replicate with a LINESTRINGM shapefile. Did you use a shapefile or PostGIS or something else? Please attach a sample if that was a shapefile.

#3 Updated by Regis Haubourg over 5 years ago

Yes Martin, I used postgis LINESTRINGM data. In current Master, they are displayed correctly.
However, I had also MULTILINESTINGM geometries (not a common type), and it is not displayed.

for instance:

SRID=2154;MULTILINESTRINGM((319564.6 6262840 995533,319554.9 6262870 995564.539557451,319540.7 6262965 995660.626534537,319552 6263000 995697.417559107,319592.1 6263024.5 995744.425133884,319637.1 6263024 995789.442705392,319706.8 6263003.5 995862.118773532,319721.9 6263013.5 995880.235773551,319722 6263028.5 995895.241037957,319742.2 6263058 995931.00597282,319772.3 6263068 995962.734060099,319812.9 6263152.5 996056.512464489,319803.4 6263207.5 996112.34523709,319823.5 6263222.5 996137.433553461,319849.7 6263247 996173.315806586,319849.8 6263267 996193.32263129,319860 6263287 996215.780846753,319880 6263287 996235.787421377,319899.9 6263281.5 996256.440273382,319920 6263296.5 996281.528589754,319945 6263306 996308.281539633,320034.4 6263244.5 996416.828085572,320059.5 6263254.5 996443.85566469,320120.2 6263344 996552.033435582,320161.7 6263418.5 996637.34042346,320162.2 6263478.5 996697.362231313,320157.4 6263499.5 996718.910900389,320137.7 6263539.5 996763.513560727,320113.1 6263579.5 996810.488128825,320073.2 6263585 996850.778658111,320058.3 6263600 996871.928219349,320053.7 6263645 996917.177589447,320069 6263680 996955.388182932,320099.2 6263709.5 996997.619237633,320154.3 6263734 997057.940470188,320279.3 6263748 997183.763375184,320335.4 6263772.5 997245,320355.8 6263817.5 997294.420224218,320356.3 6263877.5 997354.437035633,320341.7 6263927.5 997406.537823616,320357.2 6263992 997472.890371113,320287.9 6264067.5 997575.398403188,320223.3 6264108 997651.662839661,320188.6 6264144.5 997702.037290461,320173.9 6264169.5 997731.045960867,320174.4 6264234.5 997796.063839293,320184.5 6264254.5 997818.474918631,320190.9 6264294 997858.499862888,320122.4 6264469.5 998046.940639057,320048 6264541 998150.153224376,320008.4 6264581.5 998206.809956249,319983.8 6264621.5 998253.780614009,319984.1 6264666.5 998298.792659948,320007.6 6264723 998360,320014.8 6264756 998393.764053119,319995.2 6264806 998447.448919876,319950.7 6264851.5 998511.069338599,319826.3 6264918.5 998652.313303777,319771.9 6264974 998730,319828.2 6265028.5 998808.357587558,319836.3 6265045 998826.738513358,319874 6265123 998913.371389314,319899.2 6265157.5 998956.094703041,319944.5 6265197 999016.197309048,320029.7 6265236.5 999110.108166265,320091 6265281 999185.857182047,320126.3 6265325.5 999242.657930624,320128.8 6265328 999246.193456332,320176.7 6265375 999313.300751888,320302.2 6265453 999461.064579499,320343.4 6265487.5 999514.801685945,320368.9 6265547.5 999579.995476222,320379.4 6265608 999641.399731087,320375 6265688 999721.52045395,320380.4 6265738 999771.811091963,320400.8 6265788 999825.812448216,320502.7 6265902 999978.716017776,320517.8 6265917 1000000))

#4 Updated by Martin Dobias over 5 years ago

I still cannot confirm. Used this testing table and the line shows up in canvas:

create table test_multilinestringm (id int);
select addgeometrycolumn('test_multilinestringm', 'geom', -1, 'MULTILINESTRINGM', 3);
insert into test_multilinestringm values (1, st_geomfromtext('MULTILINESTRINGM((319564.6 6262840 995533,319554.9 6262870 995564.539557451,319540.7 6262965 995660.626534537,319552 6263000 995697.417559107,319592.1 6263024.5 995744.425133884,319637.1 6263024 995789.442705392,319706.8 6263003.5 995862.118773532,319721.9 6263013.5 995880.235773551,319722 6263028.5 995895.241037957,319742.2 6263058 995931.00597282,319772.3 6263068 995962.734060099,319812.9 6263152.5 996056.512464489,319803.4 6263207.5 996112.34523709,319823.5 6263222.5 996137.433553461,319849.7 6263247 996173.315806586,319849.8 6263267 996193.32263129,319860 6263287 996215.780846753,319880 6263287 996235.787421377,319899.9 6263281.5 996256.440273382,319920 6263296.5 996281.528589754,319945 6263306 996308.281539633,320034.4 6263244.5 996416.828085572,320059.5 6263254.5 996443.85566469,320120.2 6263344 996552.033435582,320161.7 6263418.5 996637.34042346,320162.2 6263478.5 996697.362231313,320157.4 6263499.5 996718.910900389,320137.7 6263539.5 996763.513560727,320113.1 6263579.5 996810.488128825,320073.2 6263585 996850.778658111,320058.3 6263600 996871.928219349,320053.7 6263645 996917.177589447,320069 6263680 996955.388182932,320099.2 6263709.5 996997.619237633,320154.3 6263734 997057.940470188,320279.3 6263748 997183.763375184,320335.4 6263772.5 997245,320355.8 6263817.5 997294.420224218,320356.3 6263877.5 997354.437035633,320341.7 6263927.5 997406.537823616,320357.2 6263992 997472.890371113,320287.9 6264067.5 997575.398403188,320223.3 6264108 997651.662839661,320188.6 6264144.5 997702.037290461,320173.9 6264169.5 997731.045960867,320174.4 6264234.5 997796.063839293,320184.5 6264254.5 997818.474918631,320190.9 6264294 997858.499862888,320122.4 6264469.5 998046.940639057,320048 6264541 998150.153224376,320008.4 6264581.5 998206.809956249,319983.8 6264621.5 998253.780614009,319984.1 6264666.5 998298.792659948,320007.6 6264723 998360,320014.8 6264756 998393.764053119,319995.2 6264806 998447.448919876,319950.7 6264851.5 998511.069338599,319826.3 6264918.5 998652.313303777,319771.9 6264974 998730,319828.2 6265028.5 998808.357587558,319836.3 6265045 998826.738513358,319874 6265123 998913.371389314,319899.2 6265157.5 998956.094703041,319944.5 6265197 999016.197309048,320029.7 6265236.5 999110.108166265,320091 6265281 999185.857182047,320126.3 6265325.5 999242.657930624,320128.8 6265328 999246.193456332,320176.7 6265375 999313.300751888,320302.2 6265453 999461.064579499,320343.4 6265487.5 999514.801685945,320368.9 6265547.5 999579.995476222,320379.4 6265608 999641.399731087,320375 6265688 999721.52045395,320380.4 6265738 999771.811091963,320400.8 6265788 999825.812448216,320502.7 6265902 999978.716017776,320517.8 6265917 1000000))'));

#5 Updated by Martin Dobias over 5 years ago

  • Status changed from Open to Feedback

#6 Updated by Salvatore Larosa over 5 years ago

  • Affected QGIS version changed from 2.0.1 to master

I can confirm the issue. On my machine the testing table (provided by Martin) doesn't work on latest master while works fine on 2.0.1 version.

#7 Updated by Giovanni Manghi over 5 years ago

  • Status changed from Feedback to Open
  • Target version set to Version 2.2

#8 Updated by Jürgen Fischer over 5 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF