Select to view content in your preferred language

Can not load WFS-Featuretable from URL Hosted on GeoServer

651
1
Jump to solution
07-25-2023 08:38 AM
geowin
by
New Contributor

When I try to load a WfsFeatureTable from a WFS-Layer hosted on GeoServer, I didn't get Any error,but it Can't load wfs service correctly!

SDK Version: 100.15.2

Here is my wfs service url and tableName

http://47.114.126.208:5431/geoserver/tamp/ows?service=WFS&version=2.0.0&request=GetCapabilities
tableName = "tamp:pt_tamp_stake"

截屏2023-07-25 23.34.47.png

0 Kudos
1 Solution

Accepted Solutions
Shubham_Sharma
Esri Contributor

You would need to provide a call "populateFromServiceAsync" on the feature table to query the feature service and place the resulting features in the feature layer:

 

// create a query based on the current visible extent
val wfsQuery = QueryParameters()
wfsQuery.setGeometry(extent)
// choose the spatial relationship used for the query 
wfsQuery.setSpatialRelationship(QueryParameters.SpatialRelationship.INTERSECTS) 
// populate the WFS feature table based on the given extent
wfsFeatureTable.populateFromServiceAsync(wfsQuery, false, null)

 

View solution in original post

0 Kudos
1 Reply
Shubham_Sharma
Esri Contributor

You would need to provide a call "populateFromServiceAsync" on the feature table to query the feature service and place the resulting features in the feature layer:

 

// create a query based on the current visible extent
val wfsQuery = QueryParameters()
wfsQuery.setGeometry(extent)
// choose the spatial relationship used for the query 
wfsQuery.setSpatialRelationship(QueryParameters.SpatialRelationship.INTERSECTS) 
// populate the WFS feature table based on the given extent
wfsFeatureTable.populateFromServiceAsync(wfsQuery, false, null)

 

0 Kudos