<?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 Creating a dynamic spatial view to be displayed on ArcMAp and published on ArcGIS Server in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/creating-a-dynamic-spatial-view-to-be-displayed-on/m-p/405390#M2714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I have some datasets: Parks, Park facilities and ParkTrails. These have many-to-many relationship; i.e a park can have multiple facilities and there may be multiple park trails on a single park &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I would like to publish this data to ArcGIS Server, and issue queries on it, so that I can get a single result for a single Park. Currently, when mapping&amp;nbsp; say a pack I get all other parks and facilities as well as Park line and this is somehow confusing and a lot of information to digest at a time when the result is drawn by a text search.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;Please does anyone have an idea how I can&amp;nbsp;create a spatial view that will generate a unique Object ID field for repeated geometries to enable me publish a park layer with say uniquely identified facilities and park lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I am using MSSQL Database server 2012 and ArcGIS 10.4. I would also not want to tamper with my data storage type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I have&amp;nbsp;tried creating the view&amp;nbsp;from my MSSQL interface but&amp;nbsp; on bringing it across to ArcCatalog or ArcMap, I keep getting the OID error (ObjectID)and some other errors as shown in the screenshot attached here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;Also&amp;nbsp;at some point, the feature displays on ArcMap to show just&amp;nbsp; one feature either polygon data or the Line data but when I try to view the attribute table it gives me another error screenshot 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;&lt;IMG alt="error meaasage" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/366033_parkerror.JPG" style="height: 222px;" width="379" /&gt;&lt;IMG alt="Screenshot 2 error that shows when i tried to open the attribute tables of the view that were created on MSSQL" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366034_screenshot2.JPG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2017 14:25:25 GMT</pubDate>
    <dc:creator>IreneEgbulefu1</dc:creator>
    <dc:date>2017-08-07T14:25:25Z</dc:date>
    <item>
      <title>Creating a dynamic spatial view to be displayed on ArcMAp and published on ArcGIS Server</title>
      <link>https://community.esri.com/t5/developers-questions/creating-a-dynamic-spatial-view-to-be-displayed-on/m-p/405390#M2714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I have some datasets: Parks, Park facilities and ParkTrails. These have many-to-many relationship; i.e a park can have multiple facilities and there may be multiple park trails on a single park &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I would like to publish this data to ArcGIS Server, and issue queries on it, so that I can get a single result for a single Park. Currently, when mapping&amp;nbsp; say a pack I get all other parks and facilities as well as Park line and this is somehow confusing and a lot of information to digest at a time when the result is drawn by a text search.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;Please does anyone have an idea how I can&amp;nbsp;create a spatial view that will generate a unique Object ID field for repeated geometries to enable me publish a park layer with say uniquely identified facilities and park lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I am using MSSQL Database server 2012 and ArcGIS 10.4. I would also not want to tamper with my data storage type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;I have&amp;nbsp;tried creating the view&amp;nbsp;from my MSSQL interface but&amp;nbsp; on bringing it across to ArcCatalog or ArcMap, I keep getting the OID error (ObjectID)and some other errors as shown in the screenshot attached here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;Also&amp;nbsp;at some point, the feature displays on ArcMap to show just&amp;nbsp; one feature either polygon data or the Line data but when I try to view the attribute table it gives me another error screenshot 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;&lt;IMG alt="error meaasage" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/366033_parkerror.JPG" style="height: 222px;" width="379" /&gt;&lt;IMG alt="Screenshot 2 error that shows when i tried to open the attribute tables of the view that were created on MSSQL" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366034_screenshot2.JPG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-size: 11.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 14:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/creating-a-dynamic-spatial-view-to-be-displayed-on/m-p/405390#M2714</guid>
      <dc:creator>IreneEgbulefu1</dc:creator>
      <dc:date>2017-08-07T14:25:25Z</dc:date>
    </item>
  </channel>
</rss>

