{"id":50,"date":"2015-01-07T19:27:20","date_gmt":"2015-01-07T19:27:20","guid":{"rendered":"http:\/\/www.sqlgeometry.com\/?p=50"},"modified":"2015-09-24T15:56:25","modified_gmt":"2015-09-24T15:56:25","slug":"creating-a-point-feature-class-with-linear-referencing-in-esri-wierdness","status":"publish","type":"post","link":"https:\/\/www.sqlgeometry.com\/?p=50","title":{"rendered":"Creating a point feature class with linear referencing in ESRI wierdness"},"content":{"rendered":"<p>I used ESRI to create a point feature class using linear referencing, loading the data into an SDE database on SQL server. The resulting data set would not display in QGIS. I checked the SRID, validated the geometry, and narrowed the results.<\/p>\n<p>I have seen issues with Line feature classes in QGIS where the line has measure values in ESRI. These wont display. Could this be the same issue with these points?<\/p>\n<p>Yep. Of all the stupid things for ESRI to do, <strong>the points have measures<\/strong>.<\/p>\n<p>Here are the properties of the point feature class:<\/p>\n<p><code>Feature Type: Simple<br \/>\nGeometry Type: Point<br \/>\nCoordinates have Z values: No<br \/>\nCoordinates have measures: Yes <\/code><\/p>\n<p>By including the measures in the points, ESRI is forced to provide a value for the Z when adding the records to SQL. This is due to a requirement that data is loaded in X,Y,Z,M where each value is space delineated. <\/p>\n<p>So an example point looks like this:<br \/>\n<code>POINT (1199100.2299588919 880237.32388755679 NULL 4.2200000000011642)<\/code><\/p>\n<p>There is no way to add the measure without adding a placeholder for the Z.<\/p>\n<p>As for the lines, I am going to have to say that it is a bug to not display correctly in QGIS for the same reason.<\/p>\n<p><strong>UPDATE:<\/strong> Thanks QGIS contributors! This is now fixed to handle this data. <\/p>\n<p>Finally, to examine your data you can use these MSSQL methods:<\/p>\n<p><code>Shape.AsTextZM()<br \/>\nor<br \/>\nShape.ToString()<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used ESRI to create a point feature class using linear referencing, loading the data into an SDE database on SQL server. The resulting data set would not display in QGIS. I checked the SRID, validated the geometry, and narrowed the results. I have seen issues with Line feature classes in QGIS where the line &hellip; <a href=\"https:\/\/www.sqlgeometry.com\/?p=50\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Creating a point feature class with linear referencing in ESRI wierdness<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":2,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}