POST
|
What about a patch for Runtime .Net? Is that in the future?
... View more
09-09-2016
07:02 AM
|
0
|
0
|
730
|
POST
|
When is the next major release scheduled for Runtime .net? Or are you talking about the Quartz release?
... View more
09-09-2016
06:34 AM
|
0
|
2
|
730
|
POST
|
I have seen other posts where the fix was to add the following during the creation of a FeatureLayer: myFeatureTable.OutFields = Esri.ArcGISRuntime.Tasks.Query.OutFields.All; OR if (_sft.OutFields == null)
{
_sft.OutFields = new Esri.ArcGISRuntime.Tasks.Query.OutFields();
}
foreach (FieldInfo fi in _sft.Schema.Fields)
{
_sft.OutFields.Add(fi.Name);
} I have tried both suggestions but still result in a failure. Some of the exceptions include: Response status code does not indicate success: 500 (Server Error). (On ApplyEditsAsync) The shape must not have a Z value. (On AddAsync) We tried multiple attempts to save a MapPoint to the ServiceFeatureTable but the most bizarre case was the following attempt: Our table consists of a PointZ Shape type. We tried to save a MapPoint that was constructed = new MapPoint(2, 3, 0, SpatialReferences.Wgs84). Then when trying to AddAsync it would fail with the following exception: Exception: The shape must not have a Z value. : StackTrace: at RuntimeCoreNet.Interop.HandleException(Boolean retVal) at RuntimeCoreNet.CoreFeatureSource.InsertRow(Byte[] attributeBytes, UInt32 byteCount, UInt32 attributeCount, ICoreGeometry geometry) at Esri.ArcGISRuntime.Data.FeatureTable.Add(Feature feature) at Esri.ArcGISRuntime.Data.FeatureTable.<>c__DisplayClassb.b__a() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() Which doesn't make sense since the schema says PointZ type. Here is my code: ///currSFT is the ServiceFeatureTable object try { var recNo = Task.Run(() => currSFT.AddAsync(feature)).Result; var updateResult = Task.Run(() => currSFT.ApplyEditsAsync()).Result; } catch (Exception ex) { //was unable to save } 2. So on a second attempt we tried the following MapPoint: new MapPoint(3, 4, double.NaN, SpatialReferences.Wgs84); When we try to AddAsync this MapPoint, AddAsync returns a row ID of -10. Then it will throw when calling ApplyEditsAsync with an exception stating Response status code does not indicate success: 500 (Server Error). Why would this occur? I did notice when creating the MapPoint it behaves differently depending which constructor I would use. I am wondering if there is documentation on why runtime would treat an object differently depending on which constructor is used? As well as how to save my MapPoint to the table via the ServiceFeatureTable. Thank you for your help!
... View more
09-08-2016
12:48 PM
|
0
|
5
|
1820
|
POST
|
Thank you for the response. I have a few follow up questions. Is the only workaround to Close the Geodatabase? or Dispose of it? If so what are the performance impacts for both closing and disposing a Geodatabase? Does this bug also exist in File Geodatabase 1.3 API? (I noticed it on my end, but would like to confirm with you)
... View more
06-14-2016
07:29 AM
|
0
|
1
|
868
|
POST
|
I am trying to work on making bulk inserts and deletes but I am having trouble releasing the write lock on the table. I made a small sample project with only one insert to test the lock and the lock remains even after the table calls FreeWriteLock. The lock is only removed when the Geodatabase object is closed or disposed of. I want the lock to be removed when table calls FreeWriteLock. Using File Geodatabase API 1.4 Here is a sample of my code: public void InsertRow() { using (Geodatabase geodatabase = Geodatabase.Open(DestinationDBPath)) { using (Table table = geodatabase.OpenTable("Points")) { table.LoadOnlyMode(true); table.SetWriteLock(); using (Row row = table.CreateRowObject()) { table.Insert(row); } table.LoadOnlyMode(false); table.FreeWriteLock(); //Lock still remains after this call...why?? } } }
... View more
06-09-2016
10:38 AM
|
1
|
3
|
3596
|
Title | Kudos | Posted |
---|---|---|
1 | 06-09-2016 10:38 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|