我用featureService.getFeaturesByBounds查询出的要素和数据服务的对不上,同一个id的要素,查出来是点,但明明在数据服务是个线
代码:
var featureService = new L.supermap.FeatureService(DataUrl);
var boundsParams = new L.supermap.GetFeaturesByBoundsParameters({
bounds: map.value.getBounds(),
datasetNames: ['weiningnewdata:WNYS_Network'],
returnContent: true,
// attributeFilter: "SMID = 234",
targetEpsgCode:'4490'
})
featureService.getFeaturesByBounds(boundsParams, (serviceResult) => {
console.log(" ~ featureService.getFeaturesByBounds ~ serviceResult:", serviceResult)
if (!serviceResult.result) { return }
var features = serviceResult.result.features.features