POST
|
Hello! I would like to change the input parameter for the purpose that the user could choose wich field of the attribute table instead of defying it myself (in the image the field MUNICIPIO_). Is it possible? Thank you!
... View more
10-03-2018
02:37 AM
|
0
|
2
|
673
|
POST
|
Hi Dan, Thanks for reply. I set it as Feature Set so I wonder if the input for Cost Path has to be something different from Feature Set, if that is the problem how I can make that users introduce their points into the map.
... View more
04-02-2017
05:25 AM
|
0
|
2
|
573
|
POST
|
Hi everyone. I have a problem with a Minimum cost Distance Model Builder. When I used as Feature Class my initial and final point my model works. However, when I set as Feature Set to give users the option to mark points into the map my model is not working. Below is the scheme. On the screen was the below messages: ERROR 010045: COSTPATH: The number of FROM cells is 0. Failed to execute (Cost Path). and this error ERROR 010151: No features found in in_memory\{58906A19-A816-4D6A-A9DC-CE9B2E365A82}. Possible empty feature class.
... View more
04-02-2017
04:46 AM
|
0
|
4
|
1262
|
POST
|
Oh thanks. I am learning bit by bit. Congrats for your publish widgets, Robert
... View more
03-29-2017
03:19 PM
|
0
|
0
|
958
|
POST
|
Here is my attempt; almost done, but I have the Type Error Cannot set property 'innerHTML' of null; I don´t understand because var stats give me back values. var myQueryTask = new QueryTask(_poblacion); myQueryTask.execute(myQuery,show); function show(results){ var stats = results.features[0].attributes; dom.byId("pobtot").innerHTML = stats.Sum_POB_TOT; dom.byId("menos15").innerHTML = stats.Sum_EDAD0015; dom.byId("entre16_64").innerHTML = stats.Sum_EDAD1664; dom.byId("mas65").innerHTML = stats.Sum_EDAD65_; };
... View more
03-29-2017
01:33 PM
|
0
|
2
|
958
|
POST
|
I have built a widget in WebAppBuilder for ArcGis where you can select an area and see the information that is within it, the selection is based on the radius you choose, in this case between 100 and 300 metres. I'd like to add a functionality so I would like to create from the first query result the sum of the four fields into the attribute table. I found out on the API the Statitics Definition class so I used with the result from the first query but it is not working. I'd appreciate if someone could give some advice about the sum query. Thanks in advace. Below the code : var myQuery = new Query();
myQuery.where = "1 = 1";
myQuery.outFields = ["POB_TOT", "EDAD0015", "EDAD1664","EDAD65_"];
myQuery.returnGeometry = true;
var myQueryTask = new QueryTask(_poblacion);
myQuery.geometry = circle;
myQuery.spatialRelationship = Query.SPATIAL_REL_INTERSECTS;
var sumfields = new StatisticDefinition();
sumfields.statisticType = "sum";
sumfields.onStatisticField = "POB_TOT", "EDAD0015", "EDAD1664","EDAD65_";
myQuery.outStatistics = sumfields;
... View more
03-28-2017
01:56 AM
|
0
|
6
|
1495
|
POST
|
I´m use this Api example: Basic service area | ArcGIS API for JavaScript 3.20 I´m using a OSM Network that it works (I´ve already verified it), I want to improve this example with a Query like "Selection by location" by ArcGis, I think I can use the final geometry of the service area for introducing into query.geometry and show in my table other information depending on I move the slider. So far, I click a point, fill a table and throw the service area
... View more
03-23-2017
06:49 AM
|
0
|
0
|
468
|
POST
|
Hi everyone I need to get a service area polygon (graphics) for inserting it into a query as geometry. This is a piece of code (a serviceAreaTask) serviceAreaTask.solve(params,function(solveResult){ var polygonSymbol = new SimpleFillSymbol( "solid", new SimpleLineSymbol("solid", new Color([232,104,80]), 2), new Color([232,104,80,0.25]) ); arrayUtils.forEach(solveResult.serviceAreaPolygons, function(serviceArea){ serviceArea.setSymbol(polygonSymbol); map.graphics.add(serviceArea); }); According to API ServiceAreaSolveResult | API Reference | ArcGIS API for JavaScript 3.20 ServiceAreaPolygon is already a graphic, and I can use its geometry in my query but, I don´t know how I can get this geometry. Thanks a lot!
... View more
03-23-2017
02:37 AM
|
0
|
3
|
1225
|
POST
|
Hi Robert. You can get a OSM Network dataset with this: (with their lilitations, obviously) https://www.arcgis.com/home/item.html?id=c18d3d0d5c62465db60f89225fdd2698 I tested in my desktop and it worked in both Route solutor and Service Area solutor. I published in my server a Route solutor and a server solutor Naservice. After that, I did a Route widget (with my Na Service) in ArcGis Online and it worked as well. With this Basic service area | ArcGIS API for JavaScript 3.20 example, it doesn´t work. Thank you!
... View more
03-13-2017
12:49 AM
|
0
|
1
|
624
|
POST
|
Hi everybody! Somebody has used the OSM network for making a Solve Service Area with API JavaScript for ArcGis? I´ve got to make a widget in ArcGis Online but Solve Route and It works and I wonder If I can to do it for Service Area and JavaScript. I would like to replicate this kind of example. Basic service area | ArcGIS API for JavaScript 3.20 I ´ve changed the NaService reference for my NA Service OSM and nothing happens not even an error in my browser inspector Thanks you!
... View more
03-12-2017
04:26 AM
|
0
|
3
|
1152
|
POST
|
Thanks you to both of you for your quick request. I´ve done these changes and I still have the same problem. I did it both ways: with selectFeatures: localOSM.selectFeatures(query, FeatureLayer.SELECTION_NEW); and setDefinitionExpression: localOSM.setDefinitionExpression("Tienda = " + SeleccLocal); (it is easier than the first idea) And this is the error I think I´ve done the query right (SeleccLocal). Everything works well until I´m putting the select feature.
... View more
03-11-2017
10:46 AM
|
0
|
2
|
1044
|
POST
|
I need to get a Feature Layer from a query. Until the Select features everything is ok but, after that. I always get the same problem. ojo.io.script error Error: Failed to execute query. at Object.h.load (init.js:885) at init.js:191 at c (init.js:76) at d (init.js:76) at b.Deferred.resolve.callback (init.js:77) at c (init.js:76) at d (init.js:76) at b.Deferred.resolve.callback (init.js:77) at init.js:1507 at k (init.js:199) You can see my code. Any ideas what is going on? Thanks!! Edit fiddle - JSFiddle
... View more
03-11-2017
04:32 AM
|
0
|
5
|
1790
|
Title | Kudos | Posted |
---|---|---|
1 | 01-24-2022 04:21 AM | |
1 | 08-05-2020 12:33 AM |
Online Status |
Offline
|
Date Last Visited |
09-19-2024
01:05 AM
|