Hi,
I have GeodatabaseFeatureServiceTable and point FeatureLayer like below and I have geometry(ex:map extent), how can I find point feature count within that geometry.
FeatureLayer
{
id:featureLayer
featureTable: geodatabaseTable
}
GeodatabaseFeatureServiceTable
{
id:geodatabaseTable
url:"http://..................................................../MapServer/0"
}
Thanks for help.
Solved! Go to Solution.
KK-
You should query the feature table, either with queryds or queryFeatures ArcGIS Runtime SDK for Qt QML API: FeatureTable Class Reference .
Both of these methods require you pass in a Query object ArcGIS Runtime SDK for Qt QML API: Query Class Reference. If you want all features within that geometry, make sure to set the where clause to "1=1" to get everything. If you just want a subset, specify your own SQL query. Make sure to set the spatialRelationship that you want (within, intersects, overlaps, etc), and this is what will filter based on geometry ArcGIS Runtime SDK for Qt QML API: Enums Class Reference
This will return a FeatureResult, which has a feature count ArcGIS Runtime SDK for Qt QML API: FeatureResult Class Reference
Thanks,
Luke
KK-
You should query the feature table, either with queryds or queryFeatures ArcGIS Runtime SDK for Qt QML API: FeatureTable Class Reference .
Both of these methods require you pass in a Query object ArcGIS Runtime SDK for Qt QML API: Query Class Reference. If you want all features within that geometry, make sure to set the where clause to "1=1" to get everything. If you just want a subset, specify your own SQL query. Make sure to set the spatialRelationship that you want (within, intersects, overlaps, etc), and this is what will filter based on geometry ArcGIS Runtime SDK for Qt QML API: Enums Class Reference
This will return a FeatureResult, which has a feature count ArcGIS Runtime SDK for Qt QML API: FeatureResult Class Reference
Thanks,
Luke