<?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 Create geoevent definition that contains GeoJSON geometry info in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-geoevent-definition-that-contains-geojson/m-p/1610054#M4315</link>
    <description>&lt;P&gt;I have a GeoJSON data stream that contains both "Point" features and "Polygon" features. I want to filter the features by their&amp;nbsp;&lt;EM&gt;geometry.type&lt;/EM&gt; value...&lt;BR /&gt;&lt;BR /&gt;the auto generated service definition looks like this. It doesn't include the &lt;EM&gt;geometry &lt;/EM&gt;children (&lt;EM&gt;type&lt;/EM&gt; and &lt;EM&gt;coordinates&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cweir_1-1745943556229.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131111i66C28BEC780D06C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cweir_1-1745943556229.png" alt="cweir_1-1745943556229.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;how can I write a geoevent definition that would include &lt;EM&gt;geometry&lt;/EM&gt; child info??&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Once I have them in the definition, I can add a filter to the GE service to separate points and polys.&lt;/P&gt;&lt;P&gt;here's the structure:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [-69.8285079996444, 43.8548409999123]
      },
      "properties": {
        "RecordId": 1412,
        "UtilityId": 1,
        "OutageId": "null",
        "CustomersOut": 1,
        "OutageCause": "Tree",
        "EstimatedRestoration": "2025-04-29T18:00:00Z",
        "DateTimeRecorded": "2025-04-29T15:35:12Z"
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [-74.15111, 43.84318],
            [-74.14636, 43.8451],
            [-74.14237, 43.84585],
            [-74.14261, 43.84394],
            [-74.14421, 43.84362],
            [-74.15111, 43.84318],
            [-74.15111, 43.84318]
          ]
        ]
      },
      "properties": {
        "RecordId": 1109,
        "UtilityId": 3,
        "OutageId": "null",
        "CustomersOut": 24,
        "OutageCause": "null",
        "EstimatedRestoration": "2025-04-29T17:00:00Z",
        "DateTimeRecorded": "2025-04-29T15:40:40Z"
      }
    },
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 16:24:35 GMT</pubDate>
    <dc:creator>cweir</dc:creator>
    <dc:date>2025-04-29T16:24:35Z</dc:date>
    <item>
      <title>Create geoevent definition that contains GeoJSON geometry info</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-geoevent-definition-that-contains-geojson/m-p/1610054#M4315</link>
      <description>&lt;P&gt;I have a GeoJSON data stream that contains both "Point" features and "Polygon" features. I want to filter the features by their&amp;nbsp;&lt;EM&gt;geometry.type&lt;/EM&gt; value...&lt;BR /&gt;&lt;BR /&gt;the auto generated service definition looks like this. It doesn't include the &lt;EM&gt;geometry &lt;/EM&gt;children (&lt;EM&gt;type&lt;/EM&gt; and &lt;EM&gt;coordinates&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cweir_1-1745943556229.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131111i66C28BEC780D06C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cweir_1-1745943556229.png" alt="cweir_1-1745943556229.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;how can I write a geoevent definition that would include &lt;EM&gt;geometry&lt;/EM&gt; child info??&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Once I have them in the definition, I can add a filter to the GE service to separate points and polys.&lt;/P&gt;&lt;P&gt;here's the structure:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [-69.8285079996444, 43.8548409999123]
      },
      "properties": {
        "RecordId": 1412,
        "UtilityId": 1,
        "OutageId": "null",
        "CustomersOut": 1,
        "OutageCause": "Tree",
        "EstimatedRestoration": "2025-04-29T18:00:00Z",
        "DateTimeRecorded": "2025-04-29T15:35:12Z"
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [-74.15111, 43.84318],
            [-74.14636, 43.8451],
            [-74.14237, 43.84585],
            [-74.14261, 43.84394],
            [-74.14421, 43.84362],
            [-74.15111, 43.84318],
            [-74.15111, 43.84318]
          ]
        ]
      },
      "properties": {
        "RecordId": 1109,
        "UtilityId": 3,
        "OutageId": "null",
        "CustomersOut": 24,
        "OutageCause": "null",
        "EstimatedRestoration": "2025-04-29T17:00:00Z",
        "DateTimeRecorded": "2025-04-29T15:40:40Z"
      }
    },
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 16:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/create-geoevent-definition-that-contains-geojson/m-p/1610054#M4315</guid>
      <dc:creator>cweir</dc:creator>
      <dc:date>2025-04-29T16:24:35Z</dc:date>
    </item>
  </channel>
</rss>

