<?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: Feature Layer rendering using ArcGis java sdk in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374224#M1149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way you can share your data?&amp;nbsp; If I could connect to the service I'd be able to reproduce it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other thing I can think of just now is setting the render mode for the feature layer like this:&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 12.0pt;"&gt;featureLayer.setRenderingMode(FeatureLayer.RenderingMode.&lt;SPAN style="color: #9876aa;"&gt;DYNAMIC&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This would generally improve the rendering experience of your polygons but if you don't have a good graphics card or your polygons contain lots of vertices then you might have issues with hardware resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.RenderingMode.html"&gt;https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.RenderingMode.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was also wondering what version of the SDK you are using.&amp;nbsp; Are you on the latest 100.5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2019 12:14:10 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2019-07-11T12:14:10Z</dc:date>
    <item>
      <title>Feature Layer rendering using ArcGis java sdk</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374220#M1145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding a &lt;STRONG&gt;feature layer&lt;/STRONG&gt; to my arcgis scene. The problem is with the rendering as you can see the below image is the one when viewed the feature layer at an angle. You can notice&lt;STRONG&gt; stripes&lt;/STRONG&gt; appearing in that layer after getting successfully rendered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="452544" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452544_IMG_20190705_112334.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the view of the same feature layer when viewed from the top. As you can see &lt;STRONG&gt;minimal stripes&lt;/STRONG&gt; are being observed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452556_Picture1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help to remove the unnecessary strips. If anyone can help me out with a solution or pointing out where the problem lies it will be truly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 08:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374220#M1145</guid>
      <dc:creator>AshunKothari</dc:creator>
      <dc:date>2019-07-08T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer rendering using ArcGis java sdk</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374221#M1146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/369074"&gt;Ashun Kothari&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me a little more about your setup here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- What version of the SDK are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- What platform / OS are you running this on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to share the URL of the feature layer so I can try this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 09:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374221#M1146</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2019-07-10T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer rendering using ArcGis java sdk</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374222#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I think I know the issue here, this looks like an issue with the depth buffering.&amp;nbsp; I can reproduce this easily with a graphics overlay which uses the same rendering pipeline as a feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;// create a new point collection for polygon
&lt;/SPAN&gt;PointCollection points = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;PointCollection(SpatialReferences.&lt;SPAN&gt;getWebMercator&lt;/SPAN&gt;())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;points.add(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Point(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;points.add(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Point(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;10000&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;points.add(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Point(&lt;SPAN style="color: #6897bb;"&gt;10000&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;10000&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;points.add(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Point(&lt;SPAN style="color: #6897bb;"&gt;10000&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// create the polyline from the point collection
&lt;/SPAN&gt;Polygon polygon = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Polygon(points)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// fill symbol
&lt;/SPAN&gt;SimpleFillSymbol sfs = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;SimpleFillSymbol(SimpleFillSymbol.Style.&lt;SPAN style="color: #9876aa;"&gt;SOLID&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;0xFF00FF00&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, null&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;Graphic graphic = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Graphic(polygon&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;sfs)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;GraphicsOverlay graphicsOverlay = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;GraphicsOverlay()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;graphicsOverlay.getSceneProperties().setSurfacePlacement(LayerSceneProperties.SurfacePlacement.&lt;SPAN style="color: #9876aa;"&gt;ABSOLUTE&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;graphicsOverlay.getGraphics().add(graphic)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;sceneView&lt;/SPAN&gt;.getGraphicsOverlays().add(graphicsOverlay)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;P&gt;So when I view it from an angle you can see the issue:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452683_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;So what is causing this?&amp;nbsp; Well you will notice that it's quite a large polygon made up from Z values of zero.&amp;nbsp; Due to the curvature of the earth, when we calculate the depth buffers part of the polygon is actually beneath the surface which causes the fuzzy rendering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above I was using a surface placement mode of "Absolute", which is absolute to the surface of the scene.&amp;nbsp; If I change the surface placement mode to draped, which as the name suggests drapes the geometry over the scene.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;GraphicsOverlay graphicsOverlay = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;GraphicsOverlay()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;graphicsOverlay.getSceneProperties().setSurfacePlacement(LayerSceneProperties.SurfacePlacement.&lt;SPAN style="color: #9876aa;"&gt;DRAPED&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;graphicsOverlay.getGraphics().add(graphic)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Now it renders correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/452759_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the FeatureLayer class also has the SceneProperties class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/LayerSceneProperties.SurfacePlacement.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/LayerSceneProperties.SurfacePlacement.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374222#M1147</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-12-11T17:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer rendering using ArcGis java sdk</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374223#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mark,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I tried using the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;SceneProperties class and giving it as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;LayerSceneProperties.SurfacePlacement.DRAPED.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt; But as you can see the rendering is still not proper.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Here is the view at an angle:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452843_Drapped_SIdeView.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the top view:&amp;nbsp;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452844_Drapped_TopVIew.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 05:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374223#M1148</guid>
      <dc:creator>AshunKothari</dc:creator>
      <dc:date>2019-07-11T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer rendering using ArcGis java sdk</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374224#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way you can share your data?&amp;nbsp; If I could connect to the service I'd be able to reproduce it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other thing I can think of just now is setting the render mode for the feature layer like this:&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 12.0pt;"&gt;featureLayer.setRenderingMode(FeatureLayer.RenderingMode.&lt;SPAN style="color: #9876aa;"&gt;DYNAMIC&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This would generally improve the rendering experience of your polygons but if you don't have a good graphics card or your polygons contain lots of vertices then you might have issues with hardware resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.RenderingMode.html"&gt;https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.RenderingMode.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was also wondering what version of the SDK you are using.&amp;nbsp; Are you on the latest 100.5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/feature-layer-rendering-using-arcgis-java-sdk/m-p/374224#M1149</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2019-07-11T12:14:10Z</dc:date>
    </item>
  </channel>
</rss>

