<?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 Apply spatial filtering to Unity in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/apply-spatial-filtering-to-unity/m-p/1350744#M6830</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using ArcGIS Maps SDK for Unity and I want to do one thing. I created a map using Map Creator UI and uploaded scene layer with 3D house models (like in example with New York). No I want to delete a certain part in my project using spatial filtering. Bu a problem I can't quite understand how to do that.&lt;BR /&gt;This is what I tried so far:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;	void CreatePolygon()
	{
		ArcGISPolygonBuilder pb = new ArcGISPolygonBuilder(ArcGISSpatialReference.WGS84());
		ArcGISPoint point1 = new ArcGISPoint(21.130116, 55.663546, ArcGISSpatialReference.WGS84());
		ArcGISPoint point2 = new ArcGISPoint(21.148544, 55.664257, ArcGISSpatialReference.WGS84());
		ArcGISPoint point3 = new ArcGISPoint(21.180174, 55.645800, ArcGISSpatialReference.WGS84());
		ArcGISPoint point4 = new ArcGISPoint(21.131820, 55.639522, ArcGISSpatialReference.WGS84());

		pb.AddPoint(point1);
		pb.AddPoint(point2);
		pb.AddPoint(point3);
		pb.AddPoint(point4);
		ArcGISPolygon polygon = (ArcGISPolygon)pb.ToGeometry();

		ArcGISPolygonCollection collection = new ArcGISPolygonCollection();
		collection.Add(polygon);


		var map = this.gameObject.GetComponents&amp;lt;ArcGISMapComponent&amp;gt;();
		ArcGISSpatialFeatureFilter filter = new ArcGISSpatialFeatureFilter(polygon, ArcGISSpatialFeatureFilterSpatialRelationship.Disjoint);
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone has a knowledge how to achieve a spatial filtering?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 13:56:37 GMT</pubDate>
    <dc:creator>Deivydas24</dc:creator>
    <dc:date>2023-11-17T13:56:37Z</dc:date>
    <item>
      <title>Apply spatial filtering to Unity</title>
      <link>https://community.esri.com/t5/developers-questions/apply-spatial-filtering-to-unity/m-p/1350744#M6830</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using ArcGIS Maps SDK for Unity and I want to do one thing. I created a map using Map Creator UI and uploaded scene layer with 3D house models (like in example with New York). No I want to delete a certain part in my project using spatial filtering. Bu a problem I can't quite understand how to do that.&lt;BR /&gt;This is what I tried so far:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;	void CreatePolygon()
	{
		ArcGISPolygonBuilder pb = new ArcGISPolygonBuilder(ArcGISSpatialReference.WGS84());
		ArcGISPoint point1 = new ArcGISPoint(21.130116, 55.663546, ArcGISSpatialReference.WGS84());
		ArcGISPoint point2 = new ArcGISPoint(21.148544, 55.664257, ArcGISSpatialReference.WGS84());
		ArcGISPoint point3 = new ArcGISPoint(21.180174, 55.645800, ArcGISSpatialReference.WGS84());
		ArcGISPoint point4 = new ArcGISPoint(21.131820, 55.639522, ArcGISSpatialReference.WGS84());

		pb.AddPoint(point1);
		pb.AddPoint(point2);
		pb.AddPoint(point3);
		pb.AddPoint(point4);
		ArcGISPolygon polygon = (ArcGISPolygon)pb.ToGeometry();

		ArcGISPolygonCollection collection = new ArcGISPolygonCollection();
		collection.Add(polygon);


		var map = this.gameObject.GetComponents&amp;lt;ArcGISMapComponent&amp;gt;();
		ArcGISSpatialFeatureFilter filter = new ArcGISSpatialFeatureFilter(polygon, ArcGISSpatialFeatureFilterSpatialRelationship.Disjoint);
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone has a knowledge how to achieve a spatial filtering?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 13:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/apply-spatial-filtering-to-unity/m-p/1350744#M6830</guid>
      <dc:creator>Deivydas24</dc:creator>
      <dc:date>2023-11-17T13:56:37Z</dc:date>
    </item>
  </channel>
</rss>

