<?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: Update time extent without restarting Map Service? in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292930#M75</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; At ArcGIS for Server 10.1 Final release, time enabled map services would support a new parameter called returnUpdates, which would return updated timeExtents for the time-aware layer/mapService.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2012 19:32:51 GMT</pubDate>
    <dc:creator>SrinivasVinnakota</dc:creator>
    <dc:date>2012-03-29T19:32:51Z</dc:date>
    <item>
      <title>Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292929#M74</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know if it is possible to update the time extent of a map service without restarting it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a map service with a single layer whose source is a Mosaic Dataset.&amp;nbsp; The MD is stored in an enterprise geodatabase (SDE) and I have modified the attribute table to have start &amp;amp; end time fields, and the map service was published with time enabled.&amp;nbsp; I also checked the box that says something like "Data changes frequently so calculate time extent automatically".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My data does change pretty frequently (several times per day), so I am constantly adding and removing rasters from the MD and updating their time fields accordingly.&amp;nbsp; However, the map service's time extent (as reported on the REST service description page and via WMS GetCapabilities) is not updated until I perform a service restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restarting the service each time the data changes is not an option for me since it will change so frequently.&amp;nbsp; I tried looking around the Administrator Directory but couldn't find anything related to updating/refreshing the time extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.1 Prerelease on Linux (64-bit RHEL6).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any information would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 18:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292929#M74</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2012-03-27T18:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292930#M75</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; At ArcGIS for Server 10.1 Final release, time enabled map services would support a new parameter called returnUpdates, which would return updated timeExtents for the time-aware layer/mapService.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 19:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292930#M75</guid>
      <dc:creator>SrinivasVinnakota</dc:creator>
      <dc:date>2012-03-29T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292931#M76</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Srinivas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response.&amp;nbsp; That is encouraging.&amp;nbsp; Do you know if sending a returnUpdates request to the Map Service will result in the WMS GetCapabilities file and the REST service description page to be updated as well?&amp;nbsp; Or is there another method for updating these fields?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me an example of a returnUpdates request?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am guessing it would look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hostname&amp;gt;:6080/arcgis/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service&amp;gt;/MapServer/returnUpdates&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 18:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292931#M76</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2012-03-30T18:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292932#M77</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get updated info on a map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hostname&amp;gt;:6080/arcgis/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service&amp;gt;/MapServer?returnUpdates=true&amp;amp;f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map response would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{"timeExtent":[&amp;lt;startTime&amp;gt;, &amp;lt;endTime&amp;gt;]}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get updated info on a layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hostname&amp;gt;:6080/arcgis/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service&amp;gt;/MapServer/&amp;lt;layerId&amp;gt;?returnUpdates=true&amp;amp;f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer response would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{"id":&amp;lt;layerId&amp;gt;, "timeExtent":[&amp;lt;startTime&amp;gt;, &amp;lt;endTime&amp;gt;]}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;returnUpdates would not update REST service description pages as the information on these pages is cached whenever a service starts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 23:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292932#M77</guid>
      <dc:creator>SrinivasVinnakota</dc:creator>
      <dc:date>2012-03-30T23:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292933#M78</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info.&amp;nbsp; Do you know if you would also be able to get an updated WMS Capabilities XML by using the following URL structure?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hostname&amp;gt;:6080/arcgis/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service&amp;gt;/MapServer/WMSServer?returnUpdates=true&amp;amp;request=GetCapabilities&amp;amp;service=WMS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 19:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292933#M78</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2012-04-02T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292934#M79</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;WMSServer does not support "returnUpdates" parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 18:31:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292934#M79</guid>
      <dc:creator>SrinivasVinnakota</dc:creator>
      <dc:date>2012-04-04T18:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292935#M80</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm facing the same problem. My application has a TimeSlider and an Editor. The problem is I can't get an updated time extent after I add a new feature with a date that is beyond the initial max time extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, my TimeSlider widget starts in 2005 and ends at 2011, which is min and max time. When I add a new feature in 2012, I simply can't update the TimeSlider widget because the layer's time extent remains the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know, I have to restart the service and clear the REST cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, there is no way to do this in ArcGIS Server 10. Am I correct? Please confirm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 03:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292935#M80</guid>
      <dc:creator>PonLertsakdadet</dc:creator>
      <dc:date>2012-07-11T03:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292936#M81</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chalermpon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I still have to do more testing, I believe that you CAN update the time slider and request data at an updated time extent from a service.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you're using the Javascript API, your layer object's timeExtent property will still represent the old time extent, since (as far as I know) there is no way to refresh this in memory.&amp;nbsp; However, you should be able to manually perform a JSON query (using esri.request() or dojo.io.script.get()) to your map service's MapServer URL using the format described above by Srinivas, e.g. &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://&amp;lt;server address&amp;gt;/arcgis/rest/services/&amp;lt;servicename&amp;gt;/MapServer?returnUpdates=true&amp;amp;f=json&lt;/PRE&gt;&lt;SPAN&gt;, and then use the result to update your Time Slider.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as you don't rely on your layer object's timeExtent, and instead request this information directly from ArcGIS Server using returnUpdates, it *should* work.&amp;nbsp; Please test and let me know if this is not the case, I'm interested to know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if someone from ESRI could confirm this behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 18:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292936#M81</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2012-07-20T18:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292937#M82</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, I'm not sure why this topic was moved into the 10.0 and prior forum - this used to be in the 10.1 Prerelease forum, so it should probably be moved to ArcGIS Server 10.1 General.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 18:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292937#M82</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2012-07-20T18:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292938#M83</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would very much like to add this functionality to my application that uses timeslider. I completely understand what you write, but I have only very limited javascript skills. Would you mind sharing with me how I can have my javascript code make this call the [...]/MapServer?returnUpdates=true&amp;amp;f=json html and how I can then pick the two values and assign them to two variables (startTime, endTime). I would very much appreciate your help. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 16:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292938#M83</guid>
      <dc:creator>TobiasFimpel</dc:creator>
      <dc:date>2013-05-24T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292939#M84</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry to be responding to this so many years later - but I'm in a pickle and your answer seems to be the only thing close to an answer I can find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Portal 10.4 and cannot upgrade at this time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;I have a web application that has a basemap with a time aware layer in it.&amp;nbsp;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;I have a GP service that performs some calculations - one of which is updating my time fields that inform the time slider.&amp;nbsp;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;I have a time slider that I want to then use to show the updated time data that my GP service just calculated.&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;However, the time aware data layer that's in my map/app does not update when the GP service is run... making it pretty useless as you'd have to then open up the map you created, turn off disable time, re-enable time, etc....&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I'm looking for a way to make sure that the map updates itself when you run the GP service.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated! I'm going to put this in it's own thread as well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Carmie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 20:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292939#M84</guid>
      <dc:creator>CarmellaBurdi1</dc:creator>
      <dc:date>2017-06-07T20:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update time extent without restarting Map Service?</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292940#M85</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time aware services will report their time extents using the ‘returnUpdates’ endpoint, but you need to make sure the service includes the ‘hasLiveData’ property somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a Map Service, make sure the Time dialog on the Layer Properties for at least one Layer has the ‘data changes frequently so calculate time extent automatically’ check box is checked on. This sets the Layer ‘hasLiveData’ to true and will refresh the properties periodically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For other Services, you’ll want to leverage the ‘Refresh Service’ GP tool and set the service JSON properties to include the key value pair of "hasLiveData": "true". See: &lt;A href="https://developers.arcgis.com/rest/services-reference/refreshservice.htm"&gt;https://developers.arcgis.com/rest/services-reference/refreshservice.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In most cases, the REST cache CAN be cleared to propagate the updated time details to the service following a data change by invoking the ‘Clear Rest Cache’ admin function. Simply specify the service folder, name, and type to flush the cache and force the service to update the properties: &lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/handlersrestcacheclear.htm"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/handlersrestcacheclear.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps, Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 18:27:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/update-time-extent-without-restarting-map-service/m-p/292940#M85</guid>
      <dc:creator>PaulDodd</dc:creator>
      <dc:date>2019-04-24T18:27:26Z</dc:date>
    </item>
  </channel>
</rss>

