|
POST
|
Try adding a 'geometryType' parameter since the default value is envelope but you're trying to send a polygon instead: geometryType=esriGeometryPolygon Doc: Download Rasters
... View more
12-23-2020
08:28 AM
|
0
|
1
|
1599
|
|
POST
|
Not sure without a codepen/jsbin/other, but you might try setting the 'outFields' parameter of the layer (or maybe the Query) to an explicit list of field names (don't use "*"). If using a FeatureLayerView, check the 'availableFields' parameter before calling queryFeatures(...).
... View more
12-22-2020
09:45 AM
|
1
|
1
|
3094
|
|
POST
|
@ClémentLaskar - just wanted to let you know that this functionality is now (4.18) available as a method directly on the ImageryLayer class; see details here. I've also updated the codepen to show this new coding pattern.
... View more
12-17-2020
12:12 PM
|
0
|
3
|
4992
|
|
POST
|
Hard to tell without a codepen/jsbin/other, but you could try looking at the json representation of the geometry: const polygonJSON = polygon.toJSON();
console.info('Polygon as JSON:', polygonJSON);
// if sending as REST parameter //
'paramName': JSON.stringify(polygon.toJSON())
... View more
12-15-2020
09:58 AM
|
0
|
1
|
1212
|
|
POST
|
Try simplifying the geometry: // simplification distance can be static based on your data
// or dynamic based on current view scale or other relevant context
var geometry = geometryEngine.simplify(polygon.geometry, 1000);
... View more
12-11-2020
03:13 PM
|
1
|
1
|
2526
|
|
POST
|
Ken, I believe this is a String property and not a method; maybe try this: const exp = 'OBJECTID = 1';
regionLayer.definitionExpression = exp;
... View more
12-08-2020
04:09 PM
|
1
|
1
|
9888
|
|
POST
|
I believe Terrain 3D is already using it; there's a link in the item description you mention above to this other item which describes the 'Elevation Coverage' of the item you are using. In this list I see WorldDEM4Ortho listed at 24 meters for the World.
... View more
12-07-2020
04:00 PM
|
1
|
0
|
1172
|
|
POST
|
You can use the mosaicRule and renderingRule to control the pixels used in the calculations. For the histogram, applying a proper mosaicRule and renderingRule is vital to make sure your stats reflect the necessary data ranges and values. It will all depend on the type of data and how its configured and published. I normally like to remap the data into simple meaningful groupings to make it simpler for the users of the apps to make sense of the data. Here's a quick codepen showing how to make the call and retrieve the results; I hope this helps.
... View more
12-07-2020
03:51 PM
|
1
|
5
|
5010
|
|
POST
|
That is my understanding, but I'll double-check with the dev team...
... View more
12-03-2020
11:42 AM
|
1
|
0
|
5388
|
|
POST
|
I wonder if it has to do with the earth curvature? Extruded polygons only extrude around the edges, and thus the polygon interior is flat. On a globe, the closer to the center of the polygon you are the lower it will be.
... View more
12-03-2020
11:12 AM
|
0
|
0
|
5391
|
|
POST
|
@ClémentLaskar if your raster data is consumed via an Imagery Layer (Image Service) you can use a direct REST call to the service computeStatisticsHistograms endpoint to do what you need.
... View more
12-03-2020
10:47 AM
|
1
|
7
|
5027
|
|
POST
|
@KevinMacLeodCAI sorry, just saw this. We can try to find a workaround here, but you might also consider creating a ticket via Tech Support so these dev usability issues get into the system. I've recently used the Measurement related widgets in several apps, both using the view.ui.add(...) technique and in a side panel outside of the view. I never try to destroy the widget; the UI is always around. If you want to clear existing measurement results and graphics, you can call the clear() method. Do you have a codepen showing the issue?
... View more
12-03-2020
10:41 AM
|
0
|
0
|
3304
|
|
POST
|
Depending on the how the ImageryLayer was published, there could be several different ways to only display certain information. For your use-case, setting the definitionExpression based on the Name field should be one way. When trying to override the default settings as published by the service author, I normally clear/reset the definitionExpression and mosaicRule properties as soon as the layer is loaded, and then set these properties as needed based on the task at hand.
... View more
11-06-2020
08:23 AM
|
1
|
0
|
3002
|
|
POST
|
Do you have a codepen or jsbin that shows the code and results?
... View more
07-31-2020
10:42 AM
|
0
|
1
|
1769
|
|
POST
|
You can use 'esri/request' to help you with this task: Start with this sample that shows the basics: Request data from a remote server | ArcGIS API for JavaScript 4.16 Then modify it to your specific needs, such as in this codepen: https://codepen.io/john-grayson/pen/oNbaGzm Good luck
... View more
07-16-2020
08:07 AM
|
0
|
0
|
1338
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|