Hello Esri Community,
I'm working on a Java Desktop application that utilizes the ArcGIS java runtime SDK v100.7.0. I've been provided with a requirement where I need to generate an alert message in the application when my ship/vessel (which has a Point Geometry that moves by certain time) gets near to a highlighted safety depth contour line (present on the ENCLayer) at a user defined distance of let's say 0.3 NM or something (this can vary depending on user input). To implement this, I would need to first get the Polyline Geometry of the safety depth contour line and then use these two geometries and calculate their distance and other such parameters.
After going through the documentation, I found that I can get the IdentifyLayerResult by calling
MapView.identifyLayerAsyn(Layer, Point2D, tolerance, returnPopupsOnly);
override. But this object gives me only those GeoElements which were identified by the Point2D under the tolerance.
My question is that how can I get a single GeoElement (specifically the ENCFeature) from the ENCLayer without specifying any Point2D screen point ? I do not want to adjust the screen point tolerance value. I want to know if there's a way to get only this ENCFeature (Designated for the Safety Depth Contour line) in my code just by the ENCLayer so that I can extract its attributes and Geometry.
Thanks in Advance.