<?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: check vehicle location inside or outside in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-vehicle-location-inside-or-outside/m-p/110837#M2756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Envelope.Intersects method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get your vehicle location extent and check if it is intersects with the geofecneLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polygon geoFenceArea = geofenceLAyer.Graphics[0] as Polygon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vehicleLocation.Extent.Intersects(geoFenceArea.Extent))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The vehicle is in&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The vehicle is out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 23:47:36 GMT</pubDate>
    <dc:creator>AsserSwelam1</dc:creator>
    <dc:date>2014-09-10T23:47:36Z</dc:date>
    <item>
      <title>check vehicle location inside or outside</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-vehicle-location-inside-or-outside/m-p/110836#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to do the below task. How can I do this?&lt;/P&gt;&lt;P&gt;we have a vehicle location with longitude and latitude&amp;nbsp; values. In a map we created a special layer named geofenceLayer. I need to check when this vehicle is coming in and going out from this particular layer. Is it possible to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 02:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-vehicle-location-inside-or-outside/m-p/110836#M2755</guid>
      <dc:creator>JulieBiju</dc:creator>
      <dc:date>2014-09-08T02:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: check vehicle location inside or outside</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-vehicle-location-inside-or-outside/m-p/110837#M2756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Envelope.Intersects method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get your vehicle location extent and check if it is intersects with the geofecneLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polygon geoFenceArea = geofenceLAyer.Graphics[0] as Polygon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vehicleLocation.Extent.Intersects(geoFenceArea.Extent))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The vehicle is in&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The vehicle is out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 23:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-vehicle-location-inside-or-outside/m-p/110837#M2756</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2014-09-10T23:47:36Z</dc:date>
    </item>
  </channel>
</rss>

