POST
|
Hi I create a geoprocess in arcgis server with upload capacity. This service works fine when tested in browser, runtime and javascript api, but not with ArcObjects. I could did the upload by IServiceUploadsClient interface. The itemID was returned in IUploadItem interface, but I do not know how use this id in IGPDataFile interface. I tried: IGPDataFile gpDataFile = new GPDataFileClass(); gpDataFile.File = "{'itemID':'" + uploadItem.ID + "'}"; I tried too: gpDataFile.DataType = "zip"; gpDataFile.Data = new ESRI.ArcGIS.GeoDatabaseDistributed.GDSData(); gpDataFile.Data.TransportType = ESRI.ArcGIS.GeoDatabaseDistributed.esriGDSTransportType.esriGDSTransportTypeUpload; In other time, I tried gpDataFile.File = uploadItem.ID; I do not know how do this. Someone can helpe me? Thanks Cristian
... View more
07-13-2016
11:32 AM
|
0
|
0
|
840
|
POST
|
Hi I understod the services rest to upload and itemId, how it works with Javascript for example. But, how is it works with ArcObjects? For upload services, I have used IUploadsClient interface and worked. The interface return the id to use like itemId and I saw the file in upload directory of ArcGIS Server. The service works in browser, runtime and javascript. But how can I use this id in geopocessor with ArcObjects? I tried this: IServiceUploadsClient serviceUploadsClient = new UploadsClientClass(); IUploadsClient uploadsClient = (IUploadsClient)serviceUploadsClient; uploadsClient.TimeoutInSecs = 380; uploadsClient.Init(agsServerConnection); IUploadItem uploadItem = serviceUploadsClient.ServiceUploadFile(zipFileName, "Teste upload", agsServerObjectName); // Ok here, I receveid ID. After this... I do not know how to do. IGPDataFile gpDataFile = new GPDataFileClass(); gpDataFile.File = "{'itemID':'" + uploadItem.ID + "'}"; // I have already tried gpDataFile.File = uploadItem.ID; IVariantArray variantArray = new VarArrayClass(); variantArray.Add(gpDataFile); IGeoProcessorResult geoprocessorResult = _geoprocessor.ExecuteAsync("UploadFile", variantArray); IGPDataFile looks does not work. The status of job was failed and I always receve messages saying "Parameters are not valid.\nERROR 000840: The value is not a File.". What is wrong in this? Thanks Cristian
... View more
07-13-2016
06:30 AM
|
0
|
0
|
2150
|
POST
|
Hi We are having problem with snapping functions in new 10.2 version yet. When I click on Control to enable snapping and move mouse, the red circle is displayed but I got AccessViolationException. This is happens in samples too, as Editor Widget or Editor Widget OnLine for example. Someone else got the same error? Thanks Cristian ps.: In event viewer I have the message below. Aplicativo: SampleApplication.exe Versão do Framework: v4.0.30319 Descrição: O processo foi terminado devido a uma exceção sem tratamento. Informações da Exceção: System.AccessViolationException Pilha: em ESRI.ArcGIS.Client.NativeGraphicsLayerMethods.HitTest(IntPtr, IntPtr, Int32, Int32, Int32, Int32, Int32, Int32 ByRef, ESRI.ArcGIS.Client.NativeByteBuffer ByRef) em ESRI.ArcGIS.Client.NativeGraphicsLayerMethods.HitTest(IntPtr, IntPtr, Int32, Int32, Int32, Int32, Int32, Int32 ByRef, ESRI.ArcGIS.Client.NativeByteBuffer ByRef) em ESRI.ArcGIS.Client.Runtime.NativeGraphicsLayer+<PickIds>d__20.MoveNext() em System.Collections.Generic.List`1[[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1<Int64>) em ESRI.ArcGIS.Client.Runtime.MapPulseThread.HitTestLayer(ESRI.ArcGIS.Client.Runtime.IHittableNativeLayer, Int32, Int32, Int32, Int32, Int32) em ESRI.ArcGIS.Client.Runtime.MapPulseThread.HitTestLayers(System.Collections.Generic.IEnumerable`1<ESRI.ArcGIS.Client.Runtime.IHittableNativeLayer>, Int32, Int32, System.Windows.Point, Double, Double, Int32, Double) em ESRI.ArcGIS.Client.Runtime.MapPulseThread.ProcessHitTests(Int32, Int32, Double) em ESRI.ArcGIS.Client.Runtime.MapPulseThread.ThreadProc() em System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) em System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) em System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) em System.Threading.ThreadHelper.ThreadStart()
... View more
11-11-2013
04:48 AM
|
0
|
1
|
3459
|
POST
|
Hi I am testing Runtime for WPF and referring to the snapping, I have seen that it work only to vertices and there is not nearest snapping. The snapping (holding left control) do not work at the first click, working after second click only. It is not good, because I can need to start a polyline from another for example. I also have seen that the snapping do not work to point features. Do you or someone have tested and seen this? There is some solution for this? Thanks Cristian
... View more
10-21-2013
07:19 AM
|
0
|
0
|
223
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|