<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using SQL Server 2008 spatial data types and ZM polylines in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-sql-server-2008-spatial-data-types-and-zm/m-p/612227#M34523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to use SQL to create features in my featureclasses. I have been very successful with 2D points and polylines and can insert features at will via SQL. However, with 3D points and lines, its proving more challenging. Something like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;use GeometryTesting
go
insert into ZMPOINTS (OBJECTID, SHAPE)
values (1, geometry::STGeomFromText
&amp;nbsp; ('POINT(1703722.03 12853873.58 1175.94 1176)', 8))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...isn't liked by SDE. The record goes in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SELECT TOP 1000 [OBJECTID]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[SHAPE].AsTextZM() as c
&amp;nbsp; FROM [GeometryTesting].[dbo].[ZMPOINTS]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;OBJECTID c
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POINT (1703722.03 12853873.58 1175.94 1176)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as far as the SQL Server geometry type and the base table is concerned, there are Z and M values for the point. When I add the FC to ArcMap, the features do not show up, BUT I can select the feature and zoom to it. Unselect it, and nothing is there. Also, I can export the FC to a shp and the features then show up just fine. It's almost like the FC is just busted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, with 2D points and polylines, this all works great, there is something going on with the 3D and m-value FCs though. Has anyone had any experience working with ZM points/polylines with the SQL Server geometry datatype and ArcGIS/SDE?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts greatly appreciated. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;chad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:11:13 GMT</pubDate>
    <dc:creator>deleted-user-GQE1M5NT-OOh</dc:creator>
    <dc:date>2021-12-12T02:11:13Z</dc:date>
    <item>
      <title>Using SQL Server 2008 spatial data types and ZM polylines</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-server-2008-spatial-data-types-and-zm/m-p/612227#M34523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to use SQL to create features in my featureclasses. I have been very successful with 2D points and polylines and can insert features at will via SQL. However, with 3D points and lines, its proving more challenging. Something like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;use GeometryTesting
go
insert into ZMPOINTS (OBJECTID, SHAPE)
values (1, geometry::STGeomFromText
&amp;nbsp; ('POINT(1703722.03 12853873.58 1175.94 1176)', 8))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...isn't liked by SDE. The record goes in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SELECT TOP 1000 [OBJECTID]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[SHAPE].AsTextZM() as c
&amp;nbsp; FROM [GeometryTesting].[dbo].[ZMPOINTS]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;OBJECTID c
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POINT (1703722.03 12853873.58 1175.94 1176)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as far as the SQL Server geometry type and the base table is concerned, there are Z and M values for the point. When I add the FC to ArcMap, the features do not show up, BUT I can select the feature and zoom to it. Unselect it, and nothing is there. Also, I can export the FC to a shp and the features then show up just fine. It's almost like the FC is just busted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, with 2D points and polylines, this all works great, there is something going on with the 3D and m-value FCs though. Has anyone had any experience working with ZM points/polylines with the SQL Server geometry datatype and ArcGIS/SDE?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts greatly appreciated. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;chad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-server-2008-spatial-data-types-and-zm/m-p/612227#M34523</guid>
      <dc:creator>deleted-user-GQE1M5NT-OOh</dc:creator>
      <dc:date>2021-12-12T02:11:13Z</dc:date>
    </item>
    <item>
      <title>Rebuild the spatial index</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-server-2008-spatial-data-types-and-zm/m-p/612228#M34524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, to answer my own question...someone in another email forum suggested I rebuild my spatial reference, which ultimately fixed my issue. Rebuild using Toolbox tools, NOT a rebuild all in SQL Server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-server-2008-spatial-data-types-and-zm/m-p/612228#M34524</guid>
      <dc:creator>deleted-user-GQE1M5NT-OOh</dc:creator>
      <dc:date>2010-04-13T15:41:43Z</dc:date>
    </item>
  </channel>
</rss>

