<?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: SDE Command/Method to calculate extent in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300178#M17207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the 'sdelayer -o alter' command with the '-E' option to calculate the extent.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;sdelayer -o alter -l airports,shape -E calc -D gis -i sde:sqlserver:server -u vector -p vector&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the '-E' option you can use 'calc' to automatically calculate the extent, or you can enter the extent manually, i.e. (-E -75.07,40.03,-74.98,40.10)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 10:37:12 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2013-01-14T10:37:12Z</dc:date>
    <item>
      <title>SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300177#M17206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have came across certain requirements under which we want to reconfigure the map in specific scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my question to the respective members is that- Is there any direct method/function already available in SDE dll which further can be used to recalculate extent directly ? If yes, then explanation with example would be benificial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If no, then which alternate method from sde dll can be used to recalculate it and how ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a part of supportive information, we are using this SDE dll in .Net environment by introducing wrapper methods and calling those methods/functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance.....:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 06:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300177#M17206</guid>
      <dc:creator>VinayakJogade</dc:creator>
      <dc:date>2013-01-14T06:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300178#M17207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the 'sdelayer -o alter' command with the '-E' option to calculate the extent.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;sdelayer -o alter -l airports,shape -E calc -D gis -i sde:sqlserver:server -u vector -p vector&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the '-E' option you can use 'calc' to automatically calculate the extent, or you can enter the extent manually, i.e. (-E -75.07,40.03,-74.98,40.10)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 10:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300178#M17207</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-01-14T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300179#M17208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using .NET against the ArcSDE DLLs isn't really supported.&amp;nbsp; The supported mechanism would&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be to use C++ against the 'C' API to make .NET objects, though in this case, the&amp;nbsp; SE_ENVELOPE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;object is representable with a wrapper.&amp;nbsp; The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/capi/capi.htm"&gt;'C' API documentation&lt;/A&gt;&lt;SPAN&gt; explains all the available &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;functions, and should be your first reference when attempting 'C' API programming.&amp;nbsp; All-in-all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using 'sdelayer' is much easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to be careful about changing the extents of layers, since the optimizer uses the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ratio of the layer extent to the search envelope to determine if the spatial index should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;used -- envelope changes can have an impact on draw performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 12:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300179#M17208</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-01-14T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300180#M17209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use the 'sdelayer -o alter' command with the '-E' option to calculate the extent.&amp;nbsp; Ex:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;sdelayer -o alter -l airports,shape -E calc -D gis -i sde:sqlserver:server -u vector -p vector&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;For the '-E' option you can use 'calc' to automatically calculate the extent, or you can enter the extent manually, i.e. (-E -75.07,40.03,-74.98,40.10)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jake, first of all thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am worried about this command as it would give me altered extent of all layers. However, I am using dynamic service (updating data @ run time) with single layer, so does this command alter it upto that layer only ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300180#M17209</guid>
      <dc:creator>VinayakJogade</dc:creator>
      <dc:date>2013-01-15T10:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300181#M17210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This command will only update the layer specified with the '-l' option.&amp;nbsp; In the example above, only the "airports" feature class extent will be updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300181#M17210</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-01-15T10:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300182#M17211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Using .NET against the ArcSDE DLLs isn't really supported.&amp;nbsp; The supported mechanism would&lt;BR /&gt;be to use C++ against the 'C' API to make .NET objects, though in this case, the&amp;nbsp; SE_ENVELOPE&lt;BR /&gt;object is representable with a wrapper.&amp;nbsp; The &lt;A href="http://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/capi/capi.htm"&gt;'C' API documentation&lt;/A&gt; explains all the available &lt;BR /&gt;functions, and should be your first reference when attempting 'C' API programming.&amp;nbsp; All-in-all,&lt;BR /&gt;using 'sdelayer' is much easier.&lt;BR /&gt;&lt;BR /&gt;You need to be careful about changing the extents of layers, since the optimizer uses the&lt;BR /&gt;ratio of the layer extent to the search envelope to determine if the spatial index should be&lt;BR /&gt;used -- envelope changes can have an impact on draw performance.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Offcourse, I am using 'C API' from SDE dll, but little bit ambigious to use exact function to calculate extent of dynamic single layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So expecting any clue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;again thanks in advance..:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300182#M17211</guid>
      <dc:creator>VinayakJogade</dc:creator>
      <dc:date>2013-01-15T10:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300183#M17212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure what you mean by 'ambiguous' or 'dynamic single layer'.&amp;nbsp; There are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;only a dozen functions in 'sdetype.h' that take SE_ENVELOPE parameters, and the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; only functions that are relevant are the ones with "layer" in their name.&amp;nbsp; From the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE API standpoint, all layers are "single", and the only "dynamic" objects in the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; API are the "shape table" and "point table" (SE_STABLE &amp;amp; SE_PTABLE) constructs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;neither of which are a "layer".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From an ArcSDE standpoint, you'll get much better performance if you aways initialize&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all layers with their potential extent at creation time (e.g. set to "-180,-90,180,90" for&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GCS_WGS_1984), which obviates the need to ever recalculate extents, from the API &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*or* with 'sdelayer'.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 11:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300183#M17212</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-01-15T11:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300184#M17213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This command will only update the layer specified with the '-l' option.&amp;nbsp; In the example above, only the "airports" feature class extent will be updated.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jake, I think its lengthy part to introduce supportive framework for commands in the project framework, instead I think it would be easy to have methods from sde dll. Can you suggest any method or steps corresponding to this command which can give me extent/alter extent ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 03:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300184#M17213</guid>
      <dc:creator>VinayakJogade</dc:creator>
      <dc:date>2013-01-17T03:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Command/Method to calculate extent</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300185#M17214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's nothing easy about the ArcSDE 'C' API.&amp;nbsp; Plan on spending several weeks to learn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; it well enough to use it.&amp;nbsp; The first step is actually to learn the command-line utilities well&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enough to envision the function calls necessary to implement them.&amp;nbsp; And in this case,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it isn't even necessary -- If you create the layer with the correct envelope you won't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;need to update it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 10:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-command-method-to-calculate-extent/m-p/300185#M17214</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-01-17T10:09:16Z</dc:date>
    </item>
  </channel>
</rss>

