populateFromServiceWithXml method
Populates the table using an XML query.
The schema of the query result must match or be a subset of the schema of the table. The XML query must be made against the same feature type represented by the WFS feature table.
You must ensure that the WfsFeatureTable.featureRequestMode is set to FeatureRequestMode.manualCache before attempting to populate the table.
Parameters:
xmlRequest
— An XML string representing the complete GetFeature request including but not limited to filters, joins, and aliases.clearCache
— If true, clears existing table data before populating with the query result.
Return Value: A Future that returns a FeatureQueryResult type.
Implementation
Future<FeatureQueryResult> populateFromServiceWithXml({
required String xmlRequest,
required bool clearCache,
}) {
final coreXmlRequest = _CString(xmlRequest);
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_WFSFeatureTable_populateFromServiceWithXML(
_handle,
coreXmlRequest.bytes,
clearCache,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsFeatureQueryResult()!,
);
}