Select to view content in your preferred language

How to open the same query layer in two map

305
0
02-07-2023 05:47 AM
Naomi-
by
New Contributor

Opening several query layers with the same definition query via

 

var desc = db.GetQueryDescription(sql, name);
var table = db.OpenTable(desc);

 

leads to a featureclass already exists exception.

Is there any way to instead get the already existing feature class? Currently we iterate through all MapProjectItems to find the existing opened featureclass, but this can be slow when maps need to be loaded.

0 Kudos
0 Replies