首页 / 浏览问题 / WebGIS / 问题详情
数据服务查询出现错误:featureResults error: Index 1 out of bounds for length 1
3EXP 2025年11月10日
查询的表单数据:
{

    "datasetNames": [

        "NJ_2022_singlepart",

        "NJ_2023_singlepart",

        "NJ_2024_singlepart"

    ],

    "getFeatureMode": "SPATIAL",

    "geometry": {

        "id": 0,

        "style": null,

        "parts": [

            1

        ],

        "points": [

            {

                "id": "SuperMap.Geometry_6",

                "bounds": null,

                "SRID": null,

                "x": 116.6743080259,

                "y": 40.0293491048,

                "tag": null,

                "type": "Point",

                "geometryType": "Point"

            }

        ],

        "type": "POINT",

        "prjCoordSys": {

            "epsgCode": null

        }

    },

    "spatialQueryMode": "INTERSECT",

    "maxFeatures": 10,

    "hasGeometry": true

}

异常报错:
{
    "succeed": false,
    "error": {
        "code": 400,
        "errorMsg": "Index 1 out of bounds for length 1"
    }
}

1个回答

您好,您的这个“待查询的数据集数组”参数不对,正确格式应该是["数据源名:数据集名","数据源名:数据集名",...]
1,416EXP 2025年11月10日
感谢,疏忽了这个问题  ["数据源名:数据集名","数据源名:数据集名",...]
...