Select to view content in your preferred language

IdentifyTask very slow

3487
3
05-10-2013 10:27 PM
RalfWiesner
Deactivated User
Hi,

i test the IdentifyTask on ArcGISLocalDynamicMapServiceLayer with different Polygons. The executing time is depend on complexity of polygon. Simple Polygon (such as Rectangle) is very fast (30 ms), on a more complex Feature the executing time is 5000 ms and on Freehand-Polygon is the executing time very slow (10000 ms).

Environment:
Windows 7 64 bit
QT-Application: 64 bit
IdentifyParameters
EsriRuntimeQt::IdentifyParameters params;
params.setGeometry(mapPoint);
params.setMapExtent(m_pMap->extent());
params.setSpatialReference(m_pMap->spatialReference());
params.setMapHeight(m_pMap->height());
params.setMapWidth(m_pMap->width());
params.setLayerMode(EsriRuntimeQt::IdentifyParameters::VISIBLE_LAYERS);
int dpyX = QApplication::desktop()->physicalDpiX();
Q_UNUSED(dpyX)
int dpyY = QApplication::desktop()->physicalDpiY();
params.setDPI(dpyY);
params.setReturnGeometry(false);

              _task = EsriRuntimeQt::IdentifyTask(localDynMapSrvLayer.url());
              _task.executeAsync(params);

The ArcGISLocalDynamicMapServiceLayer has one Layer(feature class in a file geodatabase) with 10 Features.
I try also _task.execute(params) with same result.

Thanks in advance
0 Kudos
3 Replies
MichaelTims
New Contributor III
Hello,

I'm trying to reproduce this on my end, but I cannot load the provided ArcGISLocalDynamicMapServiceLayer (mpk) because it does not contain a valid full extent.  The extent values come back as NaN.  Could you please provide an updated mpk?

Thanks!
0 Kudos
Jan-Tschada
Esri Contributor
Here is an updated sample. The reference to the data source was corrupted.
Product Manager
Developers and Location Services
Germany and Switzerland
0 Kudos
MichaelTims
New Contributor III
Thank you Jan.  This is a bug on our end.  The task is not honoring the "returnGeometry" parameter.  Therefore, it attempts to return the entire geometry for each identify task, even though you have set the returnGeometry to "false".

I am fixing this for the final 10.2 release.  Thank you for your feedback and finding this issue!
0 Kudos