|
POST
|
Hi Michael, I was asked a question similar to this recently. I also have a ready-to-run application that can display this issue in-house and it leverages our San Diego data for the online/offline routing. Everything appears to work fine when using an Online Routing Service, but when leveraging a LocalRouteTask I've noticed that the Cost attributes always return zero and it appears that the solver is ignoring scaled cost polygons. I've attached the sample I've written.
... View more
11-05-2015
12:09 PM
|
1
|
0
|
2602
|
|
POST
|
In regards to ArcGIS Server, it appears that you wouldn't be able to leverage OD Cost Matrix as a Network Analyst Service. The Network Analyst Service appear to only support Route, Closest Facility, Service Area, Vehicle Routing Problem, and Location Allocation as of the 10.3.1 release. Overview of network analysis services http://resources.arcgis.com/en/help/arcgis-rest-api/#/Overview_of_Network_Analysis_Services/02r30000001s000000/ On the other hand, you should be able to solve an OD Cost Matrix using a Geoprocessing Service. You could leverage ModelBuilder, Python, or ArcObjects to build the tool that you'd publish to server to execute this task. As long as the tool is hosted on ArcGIS Server you should be able to connect to it from any client that can leverage REST (i.e. ArcMap, ArcGIS Runtime, JavaScript, etc.) and execute the tool.
... View more
11-05-2015
11:44 AM
|
0
|
0
|
2114
|
|
POST
|
It looks like there is a problem with the service. If you navigate to the REST endpoint for the Extract Data Task (HomelandSecurity/Incident_Data_Extraction) service you'll see that the ChoiceList is missing. As a result this is causing the logic on line 48 in the sample to return an empty string from the "Layers_to_Clip" parameter. The code in .NET is working properly because the ListBox in the second steps displays properly and it leverages the same logic as the first step. I'd have to ask around to see if if someone can look into this from the server side. Until this is fixed you could supply the names of the layers for the parameter within the code or you could leverage one of your services. // Sets up UI choices from the extract data service information
private async void SetupUI()
{
try
{
var info = await _gpTask.GetTaskInfoAsync();
listLayers.ItemsSource = info.Parameters.First(p => p.Name == "Layers_to_Clip").ChoiceList;
comboFormat.ItemsSource = info.Parameters.First(p => p.Name == "Feature_Format").ChoiceList;
if (comboFormat.ItemsSource != null && comboFormat.Items.Count > 0)
comboFormat.SelectedIndex = 0;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Sample Error");
}
}
... View more
11-05-2015
11:32 AM
|
1
|
0
|
685
|
|
POST
|
I noticed the same thing yesterday, but I didn't get a chance to test it. I pulled the snippet I posted from the sample at the bottom of the following page: Local Geoprocessing Service Class https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm I just confirmed with development that the code shown at the bottom of the page isn't valid for .Net and we're putting in a request to get that corrected. I'll have to look a bit deeper into this to see if there is another avenue available to accomplish this.
... View more
11-05-2015
10:03 AM
|
0
|
1
|
1698
|
|
POST
|
You would need to build the console application against the client that we be used to connect to the database. If you're using SDE 10.0 I would think that this would mean your client would need to be Desktop or Engine 10.0 or higher. I don't know your particular business requirements, but if you're focused on data extraction it may be easier to write a python script to accomplish this task and run it as a scheduled task. The ArcObjects code shouldn't be too difficult to write based on the information you've provided so far. I would think that if I had to write this I would spend the bulk of my time on the joining data portion.
... View more
11-05-2015
09:14 AM
|
0
|
0
|
1446
|
|
POST
|
I would assume that the logic shown on the following pages would need to be used to accomplish this. You'd have to select an appropriate symbol to make the symbol similar to the existing flash tool and you could probably draw lines that extend from the point to the edge of the display and use similar logic to flash them at the same times as the point. Flash Geometry Snippet http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//004900000075000000 Extending ArcObjects (IGeometry) - 08 - Flashing Geometry - YouTube https://www.youtube.com/watch?v=h7TYtSK_04g&list=PLQnljOFTspQXqYsWJG8o-eJpGlvzww9lE&index=8 How to flash a point http://forums.esri.com/Thread.asp?c=93&f=1147&t=284591
... View more
11-04-2015
02:43 PM
|
0
|
1
|
1482
|
|
POST
|
I don't think we provide any other mechanism to retrieve the output other than using the int for the index. If you wanted you could list the parameters for the tool and create a dictionary or similar construct that collects the name of the output parameter and it's position in regards to only the parameters with an output direction. You could provide the name of the parameter to the dictionary and it would then substitute the int index for you. IGPToolbox Interface http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//002n000003s4000000 IGPTool Interface http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//002n000003s3000000
... View more
11-04-2015
01:30 PM
|
1
|
0
|
901
|
|
POST
|
Everything you would need should be located on the following pages. There will be snippets located on most of these pages to display how to execute each task. I've only pasted the fine-grain arcobjects approaches below. You can substitute some of this work to the related geoprocessing tools if needed. Connecting to geodatabases and databases http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Connecting_to_geodatabases_and_databases/0001000003s8000000/ Opening datasets http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Opening_datasets/0001000001vp000000/ Creating fields http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_fields/0001000003z5000000/ Querying geodatabase tables http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Querying_geodatabase_tables/000100000146000000/ Joining data http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Joining_data/0001000002zw000000/ Converting and transferring data http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Converting_and_transferring_data/0001000003rp000000/
... View more
11-04-2015
01:13 PM
|
0
|
2
|
1446
|
|
POST
|
Have you tried the following? // Create a new LocalGeoprocessing service of synchronous execution type.
LocalGeoprocessingService gpService
= new LocalGeoprocessingService("Path to geoprocessing package", GPServiceType.Execute, 1000000);
gpService.StartAsync(delegateService =>
{
// Instantiate a new Geoprocessor task with the Url.
ESRI.ArcGIS.Client.Tasks.Geoprocessor geoprocessorTask
= new ESRI.ArcGIS.Client.Tasks.Geoprocessor(gpService.Tasks[0].Url);
});
... View more
11-04-2015
12:52 PM
|
0
|
3
|
1698
|
|
POST
|
This should give you everything you need to implement if-then-logic for this task in ModelBuilder. Using If-Then-Else logic for branching http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/using-if-then-else-logic-for-branching.htm You want to use the following tool to check the number of features selected. Get Count (Data Management) http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/get-count.htm
... View more
11-04-2015
12:45 PM
|
1
|
0
|
2277
|
|
POST
|
Please see Release date for ArcGIS Runtime .NET SDK (Windows Store) on Windows 10? This should lead to a few threads where some of the developers on this particular team discussed this topic. You'll also want to keep an eye on the following knowledge base article. Is Windows 10 Certified with Esri's ArcGIS products? http://support.esri.com/EM/knowledgebase/techarticles/detail/45362
... View more
11-02-2015
09:52 AM
|
0
|
0
|
945
|
|
POST
|
I agree with Duncan...you'll want to be more specific on your question. I'm not sure where you're seeing IPropertySet, but everything you need to do this task should be on the following two pages. Creating Feature Datasets http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/00010000029z000000.htm Converting and transferring data http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000003rp000000 I would assume that you can create/open a geodatabase and create/open a feature dataset with the path on disk instead of using IPropertySet. That would probably resolve the issue you're running into. If needed you could even handle all of this with the ready-to-run geoprocessing tools that are already designed to handle these tasks.
... View more
11-02-2015
09:49 AM
|
1
|
0
|
771
|
|
POST
|
You can either put your feature classes into an array or pass a semi-colon delimited string into the parameter. Update..did a quick search in the documentation and came across this page. How to use multiple inputs http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/How_to_use_multiple_inputs/0001000003m8000000/
... View more
11-02-2015
09:39 AM
|
0
|
1
|
932
|
|
POST
|
From what I understand you're trying to find the values of selected fields and append them to a list. Do you have a dataset you can upload that can be used to replicate this issue? Also, can you replicate the same issue when using a search cursor with a spatial filter?
... View more
11-02-2015
09:38 AM
|
0
|
0
|
681
|
|
POST
|
Assuming that you're using route.arcgis.com to perform the routes are you setting the needed attribute parameters prior to calling the service to have it reflect enforce the Walking and Walktime attribute parameters? Route service with synchronous execution http://resources.arcgis.com/en/help/arcgis-rest-api/#/Route_service_with_synchronous_execution/02r300000036000000/
... View more
10-30-2015
08:37 AM
|
0
|
0
|
846
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-19-2016 04:45 AM | |
| 1 | 09-24-2015 06:45 AM | |
| 1 | 09-15-2015 10:49 AM | |
| 1 | 10-12-2015 03:07 PM | |
| 1 | 11-25-2015 09:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|