我创建了一个表以使用Azure SQL Server测试ArcGIS Pro 2.2.3。该表的结构只是一个OBJECTID,一个形状(点)和一个文本字段。该表包含一组2个位置不同的点。
然后我将该表作为要素类加载到ArcGIS Pro中的地图中。我可以看到两个点,也可以从地图视图中选择两个点。我遇到的问题是,属性表在列出所有记录时仅列出一个点。此外,我从属性表中得到以下行为:
该表本身不是由ArcGIS Pro创建的,而是使用以下代码在SQL中定义为具有空间字段的表。该数据库托管在Azure SQL Server上:
/****** Object: Table [geotest].[geometry] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [geotest].[geometry](
[OBJECTID] [int] IDENTITY(1,1) NOT NULL,
[Shape] [geometry] NULL,
[col_as_text] [nchar](100) NULL,
CONSTRAINT [PK_geometry] PRIMARY KEY CLUSTERED
(
[OBJECTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
/****** Object: Index [FDO_Shape] ******/
CREATE SPATIAL INDEX [FDO_Shape] ON [geotest].[geometry]
(
[Shape]
)USING GEOMETRY_AUTO_GRID
WITH (BOUNDING_BOX =(-400, -90, 400, 90),
CELLS_PER_OBJECT = 16, PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO