POST
|
Thank you Michael for clarifying my doubt about editing dynamic layers using ArcGIS runtime SDK 100.6 I am still unable to run QueryFeaturesAsync against the dynamic layer, I keep getting the error "Invalid or missing input parameters". 1. What parameter is invalid? 2. What are the missing input parameters? This is the service url for the ServiceFeatureTable string url = "http://127.0.0.1:50000/arcgis/rest/services/mpk_blank/MapServer/dynamicLayer?layer={'id':101, 'source' :{'type' : 'dataLayer', 'fields' : [{'name':'OBJECTID' ,'alias':'OBJECTID'},{'name':'nodetype' ,'alias':'nodetype'}], 'dataSource' : {'type':'table', 'workspaceId':'myDb', 'dataSourceName' : 'nodes', 'gdbVersion':''} }}"; // the dynamic layer points to a table source referencing a file geodatabase (.gdb) table) ServiceFeatureTable serviceFeatureTable = new ServiceFeatureTable(new Uri(url)); serviceFeatureTable.LoadStatusChanged += async (k, h) => { if (h.Status == LoadStatus.Loaded) { try { QueryParameters qryParams = new QueryParameters(); qryParams.WhereClause = "OBJECTID > 0"; qryParams.ReturnGeometry = true; qryParams.SpatialReference = MyMapView.Map.SpatialReference; // both the feature class in file gdb and map have the same spatial reference qryParams.MaxFeatures = 100; qryParams.OrderByFields.Add(new OrderBy("OBJECTID", SortOrder.Ascending)); qryParams.ResultOffset = 0; qryParams.SpatialRelationship = SpatialRelationship.Intersects; ServiceFeatureTable stbl = k as ServiceFeatureTable; FeatureQueryResult features = await stbl.QueryFeaturesAsync(qryParams); int count = features.Count(); } catch (Exception gex) { string genmsg = gex.Message; // Invalid or missing input parameters // gex.JsonResponse = {"error":{"code":400,"message":"Invalid or missing input parameters.","details":[]}} // why???? } } }; await serviceFeatureTable.LoadAsync(); the QueryFeaturesAsync fails. The exception details are incomplete, cannot determine what is wrong with the service uri or the query parameters. Ex JsonResponse : {"error":{"code":400,"message":"Invalid or missing input parameters.","details":[]}}
... View more
11-13-2019
07:19 PM
|
0
|
1
|
608
|
POST
|
I am using ArcGIS runtime sdk for .net 100.6. I start a localserver and load a map service from mpk file. I add a filegeodatabase as dynamic workspace to the map service and add a ArcGISMapImageSubLayer created from a TableSubLayerSource to the map service first ArcGISImageSubLayer. I am getting an exception while executing ServiceFeatureTable.QueryFeaturesAsync Code string uri = string.Format( "{0}?layer={{'id':{1}, 'source' :{{'type' : 'dataLayer', 'dataSource' : {{'type':'table', 'workspaceId':'{2}', 'dataSourceName' : '{3}', 'gdbVersion':''}}, 'mapLayerId' : {1} }}}}", nodesLayer.MapServiceSublayerInfo.Source.AbsoluteUri, nodesLayer.Id, ((TableSublayerSource) nodesLayer.Source).WorkspaceId, ((TableSublayerSource) nodesLayer.Source).DataSourceName); ServiceFeatureTable newTable = new ServiceFeatureTable(new Uri(uri)); QueryParameters queryParams = new QueryParameters(); queryParams.WhereClause = "OBJECTID > 1"; queryParams.ReturnGeometry = true; queryParams.OutSpatialReference = mapView.SpatialReference; FeatureQueryResult queryResult = await newTable.QueryFeaturesAsync(queryParams); I am getting an exception Invalid or missing input parameters. 1. What am I doing wrong? 2. Can I edit features in a dynamicLayer? Thanks
... View more
10-31-2019
05:35 PM
|
0
|
3
|
772
|
POST
|
I am using AppStudio to build an application that uses secured feature services. I declared a Feature Layer and a ServiceFeatureTable as shown below. I am passing the token in the credential.token property. The features donot show up on the map. If I paste the feature layer url followed by the token in a browser, I can see the feature layer details. What am I doing wrong in the example shown below import QtQuick 2.7 import QtQuick.Controls 2.1 import QtQuick.Controls.Styles 1.4 import QtQuick.Controls.Material 2.1 import ArcGIS.AppFramework 1.0 import ArcGIS.AppFramework.Controls 1.0 import Esri.ArcGISRuntime 100.1 Item { property real scaleFactor: AppFramework.displayScaleFactor // Map view UI presentation at top MapView { id: mv anchors.fill: parent Credential { id : cred token : "dhCmM1r-nHjlh6-d-EeMlUqiGVlOIL91NoVRF6eIQO9oXEoL7X2IJ0riZBMMlOQPcZbOP4pmkdGwoL96grvcZ5pfS1BXcFJjReuNYYCyG0qF0FfpfueRRK8jSvoDz0UbDa7nb48-czOdg8fyqKaE0a6hFm_RFhlxphfDV7ldKbBWQTN9R0Zhnct-6Trqnzx6WnFv_fv8QbSLTaZc7IDaTTJWFPMBt8RS8HIlQivAKKInws7ZF-ZMxNvZ6l9NFJo3xv38arV51LJkfMcHcA137Q.." } //! [Display Feature Service] Map { BasemapTerrainWithLabels {} initialViewpoint: vc FeatureLayer { id: serviceBackedFeatureLayer popupEnabled: true PopupDefinition { fields: featureTable.fields } ServiceFeatureTable { id:featureTable url: "https://services9.arcgis.com/w5LjzOecXeZ5ftNR/arcgis/rest/services/Storm_Inlet/FeatureServer/0" credential : cred } } } //! [Display Feature Service] ViewpointCenter { id: vc center: Point { x: -13176752 y: 4090404 spatialReference: SpatialReference { wkid: 102100 } } targetScale: 300000 } // Busy Indicator BusyIndicator { anchors.centerIn: parent height: 48 * scaleFactor width: height running: true Material.accent:"#8f499c" visible: (mv.drawStatus === Enums.DrawStatusInProgress) } } }
... View more
08-13-2018
02:15 AM
|
0
|
1
|
413
|
POST
|
Hi Friends, I've been using ArcGIS Flex Source Code 3.6 and I'm trying to resize a widget (that has a Widget template with title bar and minimize, maximize buttons) to fit to the size of the contents inside the template. The content is dynamically injected based on the selection from a couple of drop down lists. The content can grow or shrink at run time. I want the widget to resize to its contents without showing any scrollbars. Is this possible? I cannot figure out how to do this. I tried setting the width and height properties on the template as well as the widget. The borders just vanishes and the widget becomes immovable. Can anyone kindly guide me to do this? Thanks, Keith Martyn
... View more
04-24-2014
02:05 AM
|
0
|
1
|
2157
|
POST
|
Hi Friends, I've been using ArcGIS Flex Source Code 3.6 and I'm trying to resize a widget (that has a Widget template with title bar and minimize, maximize buttons) to fit to the size of the contents inside the template. The content is dynamically injected based on the selection from a couple of drop down lists. The content can grow or shrink at run time. I want the widget to resize to its contents without any showing any scrollbars. Is this possible? I cannot figure out how to do this. I tried setting the width and height properties on the template as well as the widget. The borders vanish and the widgets becomes immovable. Could anyone kindly guide me to do this? Thanks, Keith Martyn
... View more
04-24-2014
02:05 AM
|
0
|
0
|
300
|
Online Status |
Offline
|
Date Last Visited |
08-07-2022
02:16 AM
|