<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get a specific ENCFeature without IdentifyLayerAsync in Java runtime in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213381#M584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trevor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but I don't think you understand the question or maybe my words weren't clear enough. The safety contour line is&amp;nbsp;&lt;STRONG&gt;not&amp;nbsp;&lt;/STRONG&gt;highlighted (it's not highlighted by me giving any screen point). By highlighted I meant to say the contour line that is dark grey bolded which is set by the Safety Contour Depth Value (the line that actually separates the light blue and sky blue sea color). What I wanted to know is that how can I obtain the&amp;nbsp;&lt;STRONG&gt;Polyline&lt;/STRONG&gt; geometry of this Safety Contour Line without using&amp;nbsp;&lt;STRONG&gt;IdentifyLayerAsync(...)&lt;/STRONG&gt; method. I do not want to pass any screen point. I want to get either all the depth contours in given&amp;nbsp;&lt;STRONG&gt;ENCLayer&lt;/STRONG&gt; or the one safety contour line that is bolded. Only then I can perform intersection check as you've mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2020 07:37:32 GMT</pubDate>
    <dc:creator>FuzailSiddiqui</dc:creator>
    <dc:date>2020-10-27T07:37:32Z</dc:date>
    <item>
      <title>How to get a specific ENCFeature without IdentifyLayerAsync in Java runtime</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213379#M582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Esri Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a Java Desktop application that utilizes the &lt;STRONG&gt;ArcGIS java runtime SDK v100.7.0&lt;/STRONG&gt;. 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&amp;nbsp;&lt;STRONG&gt;Point &lt;/STRONG&gt;Geometry that moves by certain time) gets near to a highlighted safety depth contour line (present on the &lt;STRONG&gt;ENCLayer&lt;/STRONG&gt;) 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 &lt;STRONG&gt;Polyline&lt;/STRONG&gt; Geometry of the safety depth contour line and then use these two geometries and calculate their distance and other such parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After going through the documentation, I found that I can get the &lt;STRONG&gt;IdentifyLayerResult&lt;/STRONG&gt;&amp;nbsp;by calling&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;MapView.identifyLayerAsyn(Layer, Point2D, tolerance, returnPopupsOnly);&lt;/BLOCKQUOTE&gt;&lt;P&gt;override. But this object gives me only those &lt;STRONG&gt;GeoElement&lt;/STRONG&gt;s which were identified by the &lt;STRONG&gt;Point2D&lt;/STRONG&gt; under the tolerance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is that how can I get a single&amp;nbsp;&lt;STRONG&gt;GeoElement&lt;/STRONG&gt; (specifically the &lt;STRONG&gt;ENCFeature&lt;/STRONG&gt;) from the &lt;STRONG&gt;ENCLayer&lt;/STRONG&gt; without specifying any &lt;STRONG&gt;Point2D&lt;/STRONG&gt; 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 &lt;STRONG&gt;ENCFeature&lt;/STRONG&gt; (Designated for the Safety Depth Contour line) in my code just by the &lt;STRONG&gt;ENCLayer&lt;/STRONG&gt; so that I can extract its attributes and &lt;STRONG&gt;Geometry&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2020 07:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213379#M582</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-10-26T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a specific ENCFeature without IdentifyLayerAsync in Java runtime</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213380#M583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm understanding your requirements correctly it sounds like a reasonable work flow would be to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create a &lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#buffer(com.esri.arcgisruntime.geometry.Geometry,double)"&gt;buffer&lt;/A&gt;&amp;nbsp;passing in the vessel location point geometry and the user defined distance. This will result in a buffer polygon&lt;/P&gt;&lt;P&gt;2) test whether the&amp;nbsp;buffer polygon geometry from buffer &lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersects(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)"&gt;intersects&lt;/A&gt;&amp;nbsp;with the highlighted&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;safety depth contour line. This returns a boolean&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;3) If intersect boolean is true, alert message!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You can checkout a Java sample which uses buffers &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/geometry/buffer"&gt;here&lt;/A&gt;&amp;nbsp;and another sample demonstrating spatial relationships (including intersection) &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/geometry/spatial-relationships"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Let me know how it goes!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Trevor&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2020 09:35:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213380#M583</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-26T09:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a specific ENCFeature without IdentifyLayerAsync in Java runtime</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213381#M584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trevor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but I don't think you understand the question or maybe my words weren't clear enough. The safety contour line is&amp;nbsp;&lt;STRONG&gt;not&amp;nbsp;&lt;/STRONG&gt;highlighted (it's not highlighted by me giving any screen point). By highlighted I meant to say the contour line that is dark grey bolded which is set by the Safety Contour Depth Value (the line that actually separates the light blue and sky blue sea color). What I wanted to know is that how can I obtain the&amp;nbsp;&lt;STRONG&gt;Polyline&lt;/STRONG&gt; geometry of this Safety Contour Line without using&amp;nbsp;&lt;STRONG&gt;IdentifyLayerAsync(...)&lt;/STRONG&gt; method. I do not want to pass any screen point. I want to get either all the depth contours in given&amp;nbsp;&lt;STRONG&gt;ENCLayer&lt;/STRONG&gt; or the one safety contour line that is bolded. Only then I can perform intersection check as you've mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2020 07:37:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213381#M584</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-10-27T07:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a specific ENCFeature without IdentifyLayerAsync in Java runtime</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213382#M585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fuzail,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've spoken with the engineers now and it sounds like there is no way to to obtain the polyline geometry of the Safety Countour Line without using identify. ENC in runtime is based on the S-57 standard which does not permit exposure of the geometry of ENC features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://master-dev.developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/layers/EncLayer.html"&gt;ENC layers support identify and selection&lt;/A&gt;, but not querys, unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-get-a-specific-encfeature-without/m-p/213382#M585</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-05T10:29:35Z</dc:date>
    </item>
  </channel>
</rss>

