<?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: create new point geometry offline in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52253#M402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This guide documentation should help:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_2A4C0222216A448C9CBAFCD0F75A21F6" title="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_2A4C0222216A448C9CBAFCD0F75A21F6"&gt;Edit features—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you create a feature using&amp;nbsp;the table, set the attributes and geometry, and then add it to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working with offline geodatabases, that is all you need to do. If you are working with a ServiceFeatureTable connected directly to a service, you will also need to call applyEdits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2019 16:31:55 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2019-05-29T16:31:55Z</dc:date>
    <item>
      <title>create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52252#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have app that loads features on my map, and it can generate and store geo-database to my local device.I does edit ans sync the existing features but what I want to achieve next is to create a new point on the map offline and sync back when I am online. I have tried several ways but no success. Also, tips for taking maps offline would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 13:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52252#M401</guid>
      <dc:creator>DevendraKhatri</dc:creator>
      <dc:date>2019-05-29T13:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52253#M402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This guide documentation should help:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_2A4C0222216A448C9CBAFCD0F75A21F6" title="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_2A4C0222216A448C9CBAFCD0F75A21F6"&gt;Edit features—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, you create a feature using&amp;nbsp;the table, set the attributes and geometry, and then add it to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working with offline geodatabases, that is all you need to do. If you are working with a ServiceFeatureTable connected directly to a service, you will also need to call applyEdits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 16:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52253#M402</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-05-29T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52254#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it worked.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 10:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52254#M403</guid>
      <dc:creator>DevendraKhatri</dc:creator>
      <dc:date>2019-05-30T10:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52255#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some inputs here, have been trying this whole day, no success&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have geodatabase loaded on the map, I am trying to add a new geometry [ I am drawing geometry using sketch editor ]. Geometry gets drawn on the web, but doesn't persist in the geodatabase. It does not show the new feature if I reload the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here s my simple code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;EM&gt;Geometry sketchGeometry =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mSketchEditor&lt;/SPAN&gt;.getGeometry(); // get the drawn geometry&lt;/EM&gt;&lt;BR /&gt;&lt;DIV style="font-size: 9.0pt;"&gt;&lt;EM&gt;Feature feature =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mGeodbFeatureTable&lt;/SPAN&gt;.createFeature(attributes, sketchGeometry); // create feature&lt;/EM&gt;&lt;BR /&gt;&lt;DIV style="background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;EM&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mGeodbFeatureTable&lt;/SPAN&gt;.canAdd()){&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ListenableFuture&amp;lt;Void&amp;gt; addFeatureFuture =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mGeodbFeatureTable&lt;/SPAN&gt;.addFeatureAsync(feature); // add feature async&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;addFeatureFuture.addDoneListener(()-&amp;gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN style="color: #660e7a;"&gt;addFeatureFuture&lt;/SPAN&gt;.get();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(InterruptedException e) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;e.printStackTrace();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(ExecutionException e) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;e.printStackTrace();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;P&gt;&lt;/P&gt;&lt;CODE class=""&gt;&lt;CODE class=""&gt;&lt;BR /&gt;Would it be because of spatial reference ! Geodb being in different SR than that of my drawn geometry.&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;DIV style="background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;DIV style="background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;DIV style="font-size: 9.0pt;"&gt;&lt;DIV style="background-color: #ffffff; font-size: 9.0pt;"&gt;I saw few documentations , did not help, android runtime 100.5 what I am using does not have samples for offline-edits , but&lt;BR /&gt;shows me this,&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;Missing source code file
&lt;A href="https://developers.arcgis.com/android/latest/guide/edit-features.htm" style="color: #2989c5; text-decoration: none;" title="https://developers.arcgis.com/android/latest/guide/edit-features.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Edit features—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;DIV style="font-size: 9.0pt;"&gt;&lt;DIV style="background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;CODE class=""&gt;Earlier, I had achieved editing the geometry without drawing using sketch editor, is sketch editor&amp;nbsp;unstable !&amp;nbsp;then what is the alternative to draw polygon, circle, triangle etc!&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;CODE class=""&gt;&lt;BR /&gt;Any inputs/ samples would be helpful.&lt;/CODE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52255#M404</guid>
      <dc:creator>DevendraKhatri</dc:creator>
      <dc:date>2021-12-12T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52256#M405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're not getting an error when you're writing the feature, then it's very likely the projection. I forget what Runtime does about automatically projecting but for performance we might not be doing that when writing to a local geodatabase. In general it's recommended not to make the Runtime project on the fly (each feature that is displayed from the local geodatabase must be projected to display on the map), so you might try &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/tasks/geodatabase/GenerateGeodatabaseParameters.html#setOutSpatialReference(com.esri.arcgisruntime.geometry.SpatialReference)"&gt;specifying the spatialReference&lt;/A&gt; when you set up your &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/tasks/geodatabase/GenerateGeodatabaseParameters.html"&gt;&lt;STRONG&gt;GenerateGeodatabaseParameters&lt;/STRONG&gt;&lt;/A&gt;. Note that when you read features from a service,&amp;nbsp;it's the server that will be doing the projection so Runtime won't experience a hit in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple test would be to use &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#project(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.SpatialReference,com.esri.arcgisruntime.geometry.DatumTransformation)"&gt;&lt;STRONG&gt;GeometryEngine.project()&lt;/STRONG&gt;&lt;/A&gt; to get a version of the&amp;nbsp;geometry projected to&amp;nbsp;the spatial reference of the geodatabase table and write that then see if that passes your test when you re-run. I'm certainly not aware of any&amp;nbsp;issues with the sketch editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 14:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52256#M405</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-07-18T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52257#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I checked the exception, exception was: you are not allowed to perform this operation with your licence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had placed one developer licence key to remove watermark, removed the licences, editing started working, strange !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 18:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52257#M406</guid>
      <dc:creator>DevendraKhatri</dc:creator>
      <dc:date>2019-07-24T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: create new point geometry offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52258#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. If there is no license, you will be in Developer Mode (you'll see the watermark). All capabilities are enabled then, but you are not permitted&amp;nbsp;to release an app in Developer Mode. It is for development and testing only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do offline editing, you will need a Basic license. The free license provided from your developer account is a Lite license and would only allow connected editing against a public service. A Basic License can be enabled by logging in as a Named User of any role other than Viewer. Or you can buy license packs from your local distributor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 21:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-new-point-geometry-offline/m-p/52258#M407</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-07-24T21:03:32Z</dc:date>
    </item>
  </channel>
</rss>

