我有sqlserver db表,只包含两列第一列是entityId列,第二列是entityJson .

所以在GeoServer上我写了以下Sql View Query,即

SELECT 
    entityId,
    JSON_VALUE(entityJson,'$.EntityName') As EntityName,    
    geometry::STGeomFromText('POINT(' + 
    CAST(JSON_VALUE(entityJson,'$.Lat') As CHAR(20)) + ' ' + 
    CAST(JSON_VALUE(entityJson,'$.Long') AS CHAR(20)) + ')',4326) as geometria 
FROM dbo.Entities

从上面查询On Edit Sqlview页面属性作为EntityName在单击Refresh按钮后显示我得到以下内容:

Edit SQL View Attribute

但在功能类型详细信息属性EntityName未来 .

FeatureType Details Property

有关通过SQL View从GeoServer上的表jsoncolumn获取属性的任何帮助吗?