How to get the geometric information of the polylines of a feature?
like for example, the rivers of the Ocean feature
I don't understand how to get feature information
qml #polyline #geometric
Solved! Go to Solution.
You can setup a Query to query the table for features that match a specific value. For example, create QueryParameters and then pass that into queryFeatures - FeatureTable Class | ArcGIS for Developers . We have a sample of that here - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Features/FeatureLayerQuery at master · Esri/...
Another option is if you want to identify a specific feature in the service from a mouse click, you can use identifyLayer method - GeoView Class | ArcGIS for Developers
Once you get access to a Feature object, you can access its attributes through this method Feature Class | ArcGIS for Developers. The AttributeListModel allows you to get the value for a given field name AttributeListModel Class | ArcGIS for Developers
What type of data are you working with? Is it a FeatureLayer?
Yes, is it this featurelayer
https://services6.arcgis.com/VcmJbyrKy45nGxBT/ArcGIS/rest/services/MGBPLZ/FeatureServer/0
now i can get the different name of the fields but i can't get the value of a selected field
You can setup a Query to query the table for features that match a specific value. For example, create QueryParameters and then pass that into queryFeatures - FeatureTable Class | ArcGIS for Developers . We have a sample of that here - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Features/FeatureLayerQuery at master · Esri/...
Another option is if you want to identify a specific feature in the service from a mouse click, you can use identifyLayer method - GeoView Class | ArcGIS for Developers
Once you get access to a Feature object, you can access its attributes through this method Feature Class | ArcGIS for Developers. The AttributeListModel allows you to get the value for a given field name AttributeListModel Class | ArcGIS for Developers
Thanks that help