|
POST
|
Just realized that and just did that…thanks Thanks Jay Jay Kapalczynski GIS Coordinator - Virginia Department of Game & Inland Fisheries (new address) 7870 Villa Park Drive Suite 400, Henrico VA 23228 Phone: 804.367.6796 | Fax: 804.367.2628 ü Please consider the environment before printing this email.
... View more
04-19-2016
09:24 AM
|
0
|
0
|
4707
|
|
POST
|
Is there any code reference to allow a user to select a line segment and then click a point along that selected line segment to split the line into two pieces? split location is user defined by a click.....
... View more
04-19-2016
09:16 AM
|
0
|
5
|
6450
|
|
POST
|
Looking to split a line in ArcGIS online app or a JavaScript app I would have to write. Anything out of the box in AGO?
... View more
04-19-2016
09:11 AM
|
0
|
0
|
2964
|
|
POST
|
All I am trying to do is highlight a line segment and have to user click somewhere on the line and split it into two segments....user define split. EDIT: Trying to do this in an ArcGIS online app or a written JavaScript app.
... View more
04-19-2016
09:07 AM
|
0
|
2
|
4707
|
|
POST
|
Is there a tool that will allow a user to split a line via ArcGIS Online app? Anything out of the box or do I need to create my own JavaScript App?
... View more
04-19-2016
08:58 AM
|
3
|
6
|
7229
|
|
POST
|
I have a polygon feature with different names for each polygon I have a habitat raster layer with a bunch of classifications (this is clipped to all the polygons above) I want to run statistics on the Habitat layer where it falls inside the polygon layer, its already clipped so we're good there. Result: I am looking for the polygon feature name with the statistics of each habitat type and their sum in that polygon Polygon Trees Water developed Polygon x 50 21 55 Polygon z 152 66 88 ANY IDEAS on how to do this?
... View more
04-18-2016
11:42 AM
|
0
|
5
|
5283
|
|
POST
|
Layer List Widget....I am trying to use the example below but reference a Map Service instead of a web map....how would I do that? //Create a map based on an ArcGIS Online web map id arcgisUtils.createMap("df8bcc10430f48878b01c96e907a1fc3", "map").then(function(response){ var myWidget = new LayerList({ map: response.map, layers: arcgisUtils.getLayerList(response) },"layerList"); myWidget.startup(); }); LayerList widget | ArcGIS API for JavaScript
... View more
10-23-2015
12:49 PM
|
0
|
2
|
3413
|
|
POST
|
Think I may have it....another colleague pointed something out...have to test and then will post all code.
... View more
10-22-2015
01:59 PM
|
0
|
0
|
3974
|
|
POST
|
Still getting errors from the "return" from your code so I tried it this way but not getting Unique values.... var newarr = []; var unique = {}; dojo.forEach(data, function(item) { if (!unique[item.GENUS + item.SPECIES]) { newarr.push(item); unique[item.GENUS + item.SPECIES] = item; } });
... View more
10-22-2015
09:21 AM
|
0
|
2
|
3974
|
|
POST
|
If I use your latest example I get this error: Uncaught SyntaxError: Unexpected token return If I remove the "return" as seen below I get this error: ReferenceError: unique is not defined(…) Am I missing a reference to something? My other issue is that I am trying to get the unique records from 1 or 2 fields...not the entire item list. function updateGrid3(featureSet) { var data = arrayUtils.map(featureSet.features, function (entry, i) { return { id: entry.attributes.OBJECTID, ObsID: entry.attributes.ObsID, SppBova: entry.attributes.SppBova, COMMON_NAME: entry.attributes.COMMON_NAME, GENUS: entry.attributes.GENUS, SPECIES: entry.attributes.SPECIES, Tier: entry.attributes.Tier, FedStatus: entry.attributes.FedStatus, TaxaGrp: entry.attributes.TaxaGrp, }; }); var UniqueValues = array.filter(data, function(value) { if (!unique[value]) { unique[value] = true; return true; } return false; });
... View more
10-21-2015
04:13 PM
|
0
|
3
|
3974
|
|
POST
|
I tried this and get error: "unexpected Token Return" I changed values to the array name data var UniqueValues = return dojo.filter(data, function(value) { if (!unique[value]) { unique[value] = true; return true; } return false; });
... View more
10-21-2015
11:14 AM
|
0
|
5
|
3974
|
|
POST
|
Sound I put that function outside the existing function and pass the array "data" to it?
... View more
10-21-2015
10:57 AM
|
0
|
7
|
3974
|
|
POST
|
I have a query that: is selecting features via a Buffers Geometry It grabs that array, pushed to a Function and does a Unique filter on that array It then returns it to a table created via JavaScript. I am not seeing a fully unique return set....as you can see in the attachment there are two "sunfish, bluespotted" being returned even thought he COMMON_NAME field is the same as specified in the Unique Filter. I am wondering if this is not working correctly? do I have something set up wrong? It is decreasing the number of returned records but does not seem to be getting all of unique values....I checked my data and this field seems to be unique, wondering if I am doing something wrong. // SNIP..... var query3 = new Query(); query3.geometry = bufferGeometry; // Select the Points within the Buffer and show them featureLayerVAFWIS.selectFeatures(query3, FeatureLayer.SELECTION_NEW, function(results){ }); // Query for the records with the given object IDs and populate the grid featureLayerVAFWIS.queryFeatures(query3, function (featureSet) { updateGrid3(featureSet); }); function updateGrid3(featureSet) { var data = arrayUtils.map(featureSet.features, function (entry, i) { return { id: entry.attributes.OBJECTID, ObsID: entry.attributes.ObsID, SppBova: entry.attributes.SppBova, COMMON_NAME: entry.attributes.COMMON_NAME, GENUS: entry.attributes.GENUS, SPECIES: entry.attributes.SPECIES, Tier: entry.attributes.Tier, FedStatus: entry.attributes.FedStatus, TaxaGrp: entry.attributes.TaxaGrp, }; }); var uniqueName = []; var UniquValues = array.filter(data, function (item) { var IsNameUnique = true; array.forEach(uniqueName, function (value) { if (value == (item.COMMON_NAME)) { IsNameUnique = false; } }); if (IsNameUnique) { uniqueName.push(item.COMMON_NAME); } return IsNameUnique; }); var i; var out = "<table id=t01>"; for(i = 0; i < uniqueName.length; i++) { out += "<tr><td>" + arr.id + "</td><td>" + arr.ObsID + "</td><td>" + arr.SppBova + "</td><td>" + arr.COMMON_NAME + "</td><td>" + arr.GENUS + "</td><td>" + arr.SPECIES + "</td><td>" + arr.Tier + "</td><td>" + arr.FedStatus + "</td><td>" + arr.TaxaGrp + "</td></tr>"; } out += "</table>"; document.getElementById("id01").innerHTML = out; dom.byId('upload-function').innerHTML = "See Results below"; domStyle.set(loadingShapefile, "display", "none"); }
... View more
10-21-2015
10:40 AM
|
0
|
10
|
7025
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|