<?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 Extent not updated when editing a empty shapefile with ShapefileFeatureTable in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1673572#M13809</link>
    <description>&lt;P&gt;Hello, I edited an empty shapefile using &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.ShapefileFeatureTable.-ctor.html" target="_self"&gt;ShapefileFeatureTable&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;However, when I checked the shapefile in QGIS, no geometry was displayed, even though the shapefile actually contains a polygon.&lt;/P&gt;&lt;P&gt;It looks like ShapefileFeatureTable does not update the extent of the shapefile, is that correct?&lt;/P&gt;&lt;P&gt;Here is the output of ogrinfo:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ ogrinfo -al -so test.shp
INFO: Open of `test.shp'
using driver `ESRI Shapefile' successful.

Layer name: test
Metadata:
DBF_DATE_LAST_UPDATE=2025-12-17
Geometry: Polygon
Feature Count: 1
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
...

$ ogrinfo -al test.shp
INFO: Open of `test.shp'
using driver `ESRI Shapefile' successful.

Layer name: test
Metadata:
DBF_DATE_LAST_UPDATE=2025-12-17
Geometry: Polygon
Feature Count: 1
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
...

OGRFeature(test):0
level (Integer64) = 3
POLYGON ((139.757125 35.671236,139.757125 35.691236,
139.777125 35.691236,139.777125 35.671236,
139.757125 35.671236))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 13:42:10 GMT</pubDate>
    <dc:creator>TaroShibata</dc:creator>
    <dc:date>2025-12-17T13:42:10Z</dc:date>
    <item>
      <title>Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1673572#M13809</link>
      <description>&lt;P&gt;Hello, I edited an empty shapefile using &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.ShapefileFeatureTable.-ctor.html" target="_self"&gt;ShapefileFeatureTable&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;However, when I checked the shapefile in QGIS, no geometry was displayed, even though the shapefile actually contains a polygon.&lt;/P&gt;&lt;P&gt;It looks like ShapefileFeatureTable does not update the extent of the shapefile, is that correct?&lt;/P&gt;&lt;P&gt;Here is the output of ogrinfo:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ ogrinfo -al -so test.shp
INFO: Open of `test.shp'
using driver `ESRI Shapefile' successful.

Layer name: test
Metadata:
DBF_DATE_LAST_UPDATE=2025-12-17
Geometry: Polygon
Feature Count: 1
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
...

$ ogrinfo -al test.shp
INFO: Open of `test.shp'
using driver `ESRI Shapefile' successful.

Layer name: test
Metadata:
DBF_DATE_LAST_UPDATE=2025-12-17
Geometry: Polygon
Feature Count: 1
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
...

OGRFeature(test):0
level (Integer64) = 3
POLYGON ((139.757125 35.671236,139.757125 35.691236,
139.777125 35.691236,139.777125 35.671236,
139.757125 35.671236))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 13:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1673572#M13809</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2025-12-17T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675370#M13829</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi there! This was determined to be a bug in the ArcGIS Maps SDK. This issue will be fixed with the release of the next major version of ArcGIS Maps SDK. In the meantime, the following workarounds exist that will resolve the issue:&lt;BR /&gt;&lt;BR /&gt;1) After creating a feature layer from the shapefile feature table, adding it to a map, and rendering that map, updating features will correctly adjust the extent.&lt;BR /&gt;&lt;BR /&gt;2) If there is no intention or ability to render the data, then copying the existing feature into a new feature, changing the new feature's geometry, deleting the old feature, then finally adding the new feature to the table, (essentially a roundabout way to update a feature) will correctly adjust the extent of the table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2025 21:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675370#M13829</guid>
      <dc:creator>RossMcguyer</dc:creator>
      <dc:date>2025-12-30T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675425#M13830</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/961314"&gt;@RossMcguyer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I'll go with approach 2) ,as I am writing a command line tool to export a shapefile.&lt;/P&gt;&lt;P&gt;If I want to create a shafile containing two polygons ,&amp;nbsp;is the following procedure correct?&lt;/P&gt;&lt;P&gt;(1)Read empty shapefile with &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.ShapefileFeatureTable.OpenAsync.html#Esri_ArcGISRuntime_Data_ShapefileFeatureTable_OpenAsync_System_String)_%20  (2)Add two polygons with [create feature](https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.CreateFeature.html#Esri_ArcGISRuntime_Data_FeatureTable_CreateFeature" target="_self"&gt;openasync&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(2)Add the first polygon with &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.CreateFeature.html#Esri_ArcGISRuntime_Data_FeatureTable_CreateFeature" target="_self"&gt;CreateFeature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(3)Copy the polygon with&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.CreateFeature.html#Esri_ArcGISRuntime_Data_FeatureTable_CreateFeature" target="_self"&gt;CreateFeature&lt;/A&gt; ,edit it with&lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.UpdateFeatureAsync.html#Esri_ArcGISRuntime_Data_FeatureTable_UpdateFeatureAsync_Esri_ArcGISRuntime_Data_Feature_" target="_self"&gt; UpdateFeatureAsync&lt;/A&gt;, and delete the original with &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.DeleteFeatureAsync.html" target="_self"&gt;DeleteFeatureAsync&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(4)Add the second polygon with&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.CreateFeature.html#Esri_ArcGISRuntime_Data_FeatureTable_CreateFeature" target="_self"&gt;CreateFeature&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 13:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675425#M13830</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2025-12-31T13:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675518#M13831</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.CreateFeature.html#Esri_ArcGISRuntime_Data_FeatureTable_CreateFeature" target="_blank"&gt;CreateFeature&lt;/A&gt;&amp;nbsp;is a synchronous method that creates a new feature in memory, and will not write to the shapefile's table. In order to write a feature to the shapefile, you will need to call &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.AddFeatureAsync.html" target="_blank"&gt;AddFeatureAsync&lt;/A&gt;. So for your use case, it sounds like the following would be sufficient:&lt;BR /&gt;&lt;BR /&gt;1) Read in the empty shapefile&lt;BR /&gt;2) Create a Feature using the overload of &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.CreateFeature.html#Esri_ArcGISRuntime_Data_FeatureTable_CreateFeature_System_Collections_Generic_IEnumerable_System_Collections_Generic_KeyValuePair_System_String_System_Object___Esri_ArcGISRuntime_Geometry_Geometry_" target="_blank"&gt;CreateFeature&lt;/A&gt;, with the polygon as the Geometry&lt;BR /&gt;3) Add the new Feature to the Shapefile with &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.AddFeatureAsync.html" target="_blank"&gt;AddFeatureAsync&lt;/A&gt;&lt;BR /&gt;4) Repeat for each Polygon&lt;BR /&gt;&lt;BR /&gt;Alternatively, instead of calling &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.AddFeatureAsync.html" target="_blank"&gt;AddFeatureAsync&lt;/A&gt; after you create each new feature, you could add all the newly created features to a collection, and then add them all at once by calling &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.AddFeaturesAsync.html" target="_blank"&gt;AddFeaturesAsync&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;The bug I mentioned in my first response is specific to &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.UpdateFeatureAsync.html" target="_blank"&gt;UpdateFeatureAsync&lt;/A&gt;, &lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.AddFeatureAsync.html" target="_blank"&gt;AddFeatureAsync&lt;/A&gt; will correctly adjust the extent of the table if the added feature's geometry exceeds the extent of the table.&lt;BR /&gt;&lt;BR /&gt;If you find that you need to change the geometry of a Feature that already exists in the table, and you are concerned that the change to the geometry will exceed the table's extent, then you will need to use the workaround I described for the time being.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 22:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675518#M13831</guid>
      <dc:creator>RossMcguyer</dc:creator>
      <dc:date>2025-12-31T22:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675544#M13832</link>
      <description>&lt;P&gt;Thank you for your quick reply.&lt;/P&gt;&lt;P&gt;I tried using&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.FeatureTable.AddFeatureAsync.html" target="_blank" rel="nofollow noopener noreferrer"&gt;AddFeatureAsync&lt;/A&gt; , but the extent wasn't updated.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ ogrinfo -al  -geom=YES empty_polygon.shp
INFO: Open of `empty_polygon.shp'
      using driver `ESRI Shapefile' successful.

Layer name: empty_polygon
Metadata:
  DBF_DATE_LAST_UPDATE=2026-01-01
Geometry: Polygon
Feature Count: 1
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
Layer SRS WKT:
GEOGCRS["WGS 84",
    DATUM["World Geodetic System 1984",
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["latitude",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["longitude",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
level: Real (21.6)
OGRFeature(empty_polygon):0
  level (Real) = 3.000000
  POLYGON ((139.757125 35.671236,139.757125 35.691236,139.777125 35.691236,139.777125 35.671236,139.757125 35.671236))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code was below.&amp;nbsp; (I also pushed the full code to &lt;A href="https://github.com/owari-taro/MyArcSample" target="_self"&gt;github&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;Any ideas what I might be doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt; class Program
 {
     static async Task Main()

     {
         var baseDir = AppContext.BaseDirectory;
         var shpPath = Path.Combine(baseDir, "data", "empty_polygon.shp");
         var sr = SpatialReferences.Wgs84;
         //near tokyo station
         double centerLon = 139.767125;
         double centerLat = 35.681236;

         double offset1 = 0.01; // ~1.1 km
         var points = new PointCollection(sr)
         {
             new MapPoint(centerLon - offset1, centerLat - offset1, sr),
             new MapPoint(centerLon + offset1, centerLat - offset1, sr),
             new MapPoint(centerLon + offset1, centerLat + offset1, sr),
             new MapPoint(centerLon - offset1, centerLat + offset1, sr),
             new MapPoint(centerLon - offset1, centerLat - offset1, sr)
         };
         var poly1 = new Polygon(points);
         //
         var attrs = new Dictionary&amp;lt;string, object&amp;gt;
         {
             ["level"] = (float)3
         };
         await ShapeHandler.AddPolygonFeatureAsync(shpPath, poly1, attrs);

         
     }&lt;/LI-CODE&gt;&lt;LI-CODE lang="csharp"&gt;  public static async Task AddPolygonFeatureAsync(string shapefilePath, Polygon polygon, IDictionary&amp;lt;string, object&amp;gt;? attributes = null)
  {
      if (string.IsNullOrWhiteSpace(shapefilePath))
          throw new ArgumentException("shapefilePath is required", nameof(shapefilePath));

      var table = new ShapefileFeatureTable(shapefilePath);
      Console.WriteLine(table);
      await table.LoadAsync().ConfigureAwait(false);

      var feature = table.CreateFeature();

      //SpatialReference sr = table.SpatialReference ?? SpatialReferences.Wgs84;
      feature.Geometry = polygon;

      if (attributes != null)
      {
          foreach (var kv in attributes)
          {
              if (feature.Attributes.ContainsKey(kv.Key))
              {
                  Console.WriteLine(kv);
                  feature.Attributes[kv.Key] = kv.Value;
              }
          }
      }

      await table.AddFeatureAsync(feature).ConfigureAwait(false);
      Console.WriteLine("add feature");
      Console.WriteLine(table.GetField("level").FieldType);

      table.Close();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jan 2026 13:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675544#M13832</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2026-01-01T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675733#M13833</link>
      <description>&lt;P&gt;I ran the program you uploaded to GitHub. It appears to be working as expected. I was able to see a polygon over Tokyo and the extent was updated to match (this was observed using ArcGIS Pro, see image below). I noticed your &lt;STRONG&gt;Hello.csproj&lt;/STRONG&gt; file included these lines&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;&amp;lt;!-- Copy shapefile components from the data folder to output and publish directories --&amp;gt;
&amp;lt;ItemGroup&amp;gt;
&amp;lt;None Include="data\**\*.shp" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" /&amp;gt;
&amp;lt;None Include="data\**\*.dbf" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" /&amp;gt;
&amp;lt;None Include="data\**\*.shx" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" /&amp;gt;
&amp;lt;None Include="data\**\*.prj" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" /&amp;gt;
&amp;lt;None Include="data\**\*.cpg" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" /&amp;gt;
&amp;lt;/ItemGroup&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;It would be good to confirm you are inspecting the correct files.&amp;nbsp; The original shapefiles you included inside your Data folder are not actually the ones being modified by your program. I was only able to see shapefile updates after looking at the path contained within &lt;STRONG&gt;shpPath&lt;/STRONG&gt;.&amp;nbsp;For me, the file path looked like \MyArcSample-master\bin\Debug\net9.0\data\empty_polygon.shp,&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;MyArcSample-master\data\empty_polygon.shp.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RossMcguyer_0-1767397108624.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146269iBAD6B378DB01DC48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RossMcguyer_0-1767397108624.png" alt="RossMcguyer_0-1767397108624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2026 00:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675733#M13833</guid>
      <dc:creator>RossMcguyer</dc:creator>
      <dc:date>2026-01-03T00:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675748#M13834</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/961314"&gt;@RossMcguyer&lt;/a&gt;I appreciate you checking my code.&lt;/P&gt;&lt;P&gt;I also checked the file at \bin\Debug\net9.0\data\empty_polygon.shp.&lt;/P&gt;&lt;P&gt;The polygon itself was saved correctly, but the extent was not updated, as shown below.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ogrinfo -al  -geom=YES empty_polygon.shp
INFO: Open of `empty_polygon.shp'
      using driver `ESRI Shapefile' successful.
Layer name: empty_polygon
Metadata:
  DBF_DATE_LAST_UPDATE=2026-01-01
Geometry: Polygon
Feature Count: 1
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)

(****************some lines omitted**********************************)

OGRFeature(empty_polygon):0
  level (Real) = 3.000000
  POLYGON ((139.757125 35.671236,139.757125 35.691236,139.777125 35.691236,139.777125 35.671236,139.757125 35.671236))&lt;/LI-CODE&gt;&lt;P&gt;It appears that some tools, including ArcGIS Pro and Google Earth, are able to read a shapefile with an incorrect extent, whereas QGIS fails to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a QGIS-side issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TaroShibata_0-1767453469274.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146274i9AD07E2AA4BEAE53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TaroShibata_0-1767453469274.png" alt="TaroShibata_0-1767453469274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TaroShibata_2-1767454217414.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146276i7C6E287A23CC7534/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TaroShibata_2-1767454217414.png" alt="TaroShibata_2-1767454217414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2026 01:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1675748#M13834</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2026-01-04T01:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676007#M13835</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&lt;SPAN&gt;It appears that some tools, including ArcGIS Pro and Google Earth, are able to read a shapefile with an incorrect extent, whereas QGIS fails to do so.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I would be hesitant to conclude that Google Earth Pro and ArcGIS Pro are working despite reading an incorrect extent. Examining your shapefile in both applications indicates that the extent is being updated to the expected values, and the polygon is rendering. I can also see (after setting some breakpoints in your code using Visual Studio), that the extent of the table is updated after calling AddFeatureAsync. I have also verified that running the program again and reading from the modified shapefile that the table that is created has the expected extent.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;Is this a QGIS-side issue?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Given that your code works in 3 separate instances (including one non-Esri application), I have to conclude that this is an issue with QGIS, or perhaps OGR, as that is the "provider" for QGIS. Other shapefiles seem to work fine with QGIS, so at a glance it seems as though QGIS, or OGR, is incapable of reading the updated extent of the shapefile table. This is unfortunately the limit of my expertise, as I am not in a position to know how QGIS reads and interprets shapefiles.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 22:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676007#M13835</guid>
      <dc:creator>RossMcguyer</dc:creator>
      <dc:date>2026-01-05T22:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676029#M13836</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/961314"&gt;@RossMcguyer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that OGR-based libraries are unable to read the extent of a shapefile updated by ArcGIS Runtime as &lt;A href="https://github.com/GeospatialPython/pyshp" target="_self"&gt;pyshp&lt;/A&gt; and &lt;A href="https://github.com/jonas-p/go-shp" target="_self"&gt;goshp&lt;/A&gt;&amp;nbsp; can also read it .&lt;/P&gt;&lt;P&gt;Anyway thanks for taking the time to answer my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 01:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676029#M13836</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2026-01-06T01:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676054#M13837</link>
      <description>&lt;P&gt;The issue is due to the fact that the .shx index sidecar file of the provided &lt;A href="https://github.com/owari-taro/MyArcSample/raw/refs/heads/master/data/output_polygon.zip" target="_blank" rel="noopener"&gt;zipped ESRI Shapefile layer&lt;/A&gt; is malformed, &lt;SPAN&gt;according to the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.esri.com/content/dam/esrisites/sitecore-archive/Files/Pdfs/library/whitepapers/pdfs/shapefile.pdf" rel="nofollow noreferrer" target="_blank"&gt;ESRI Shapefile Technical Description&lt;/A&gt;; in fact, the extent stored in its header section is 0,0 - 0,0:&lt;/P&gt;&lt;PRE&gt;Offset(d) 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
00000032              00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      ............................
00000064  00 00 00 00                                                                                      &lt;/PRE&gt;&lt;P&gt;ogrinfo reports the extent information contained in the header section of the .shx file.&lt;BR /&gt;&lt;BR /&gt;See a more detailed answer at&amp;nbsp;&lt;A href="https://gis.stackexchange.com/a/499601/107272" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/a/499601/107272&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 11:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676054#M13837</guid>
      <dc:creator>AndreaGiudiceandrea</dc:creator>
      <dc:date>2026-01-07T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676295#M13839</link>
      <description>&lt;P&gt;Thanks for your help, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/8333"&gt;@AndreaGiudiceandrea&lt;/a&gt;&amp;nbsp;. Your comment on Stack Exchange was also very helpful.&lt;/P&gt;&lt;P&gt;The issue was caused by the extent stored in the .shx file.&lt;BR /&gt;By updating the .shx file directly, QGIS and ogrinfo are now able to display the shapefile extent correctly.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;static void WriteShxExtent(string shxPath,
                               double xmin, double ymin,
                               double xmax, double ymax)
    {
        using var fs = new FileStream(shxPath, FileMode.Open, FileAccess.Write);
        using var bw = new BinaryWriter(fs);

        fs.Seek(36, SeekOrigin.Begin);

        // little-endian double
        bw.Write(xmin);
        bw.Write(ymin);
        bw.Write(xmax);
        bw.Write(ymax);
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this issue with not updating the .shx extent header will be fixed in a future release.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 13:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1676295#M13839</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2026-01-07T13:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1677024#M13845</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/949642"&gt;@TaroShibata&lt;/a&gt;, thanks for sharing the workaround!&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/961314"&gt;@RossMcguyer&lt;/a&gt;&amp;nbsp;, do you know when this issue will be fixed and how and where the fixing procedure could be tracked online?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 13:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1677024#M13845</guid>
      <dc:creator>AndreaGiudiceandrea</dc:creator>
      <dc:date>2026-01-09T13:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extent not updated when editing a empty shapefile with ShapefileFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1677061#M13846</link>
      <description>&lt;P&gt;I found another related issue.&lt;/P&gt;&lt;P&gt;The extent of a&lt;A href="https://developers.arcgis.com/net/api-reference/api/ios/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Data.ShapefileFeatureTable.html" target="_blank" rel="noopener"&gt; ShapefileFeatureTable&lt;/A&gt; instance is updated after adding a polygon, but the Xmin and Ymin values remain unchanged.&lt;BR /&gt;This seems inconsistent with the expected behavior. It should be same with the extent of the polygon.&lt;/P&gt;&lt;P&gt;Below are the print messages from the console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;table's extent before adding a polygon:Envelope[XMin=0, YMin=0, XMax=0, YMax=0, Wkid=4326]
polygon's extent $Envelope[XMin=139.757125, YMin=35.671236, XMax=139.77712499999998, YMax=35.691235999999996, Wkid=4326]
table's extent after adding the polygon:Envelope[XMin=0, YMin=0, XMax=139.77712499999998, YMax=35.691235999999996, Wkid=4326]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://github.com/owari-taro/MyArcSample" target="_blank" rel="noopener"&gt;https://github.com/owari-taro/MyArcSample&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 15:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/extent-not-updated-when-editing-a-empty-shapefile/m-p/1677061#M13846</guid>
      <dc:creator>TaroShibata</dc:creator>
      <dc:date>2026-01-09T15:03:06Z</dc:date>
    </item>
  </channel>
</rss>

