POST
|
Hi, Same for me, I'm not able to build my project anymore. Though I've sucessfully built https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app, I get around 250 js chunks with this sample... Using esri_loader I had around 5 chunks.
... View more
06-02-2021
02:40 AM
|
0
|
1
|
1067
|
POST
|
Thanks John ! Also it's quite confusing the parameters names are different from those in the REST API. I was indeed missing something !
... View more
05-18-2021
01:27 AM
|
0
|
0
|
1353
|
POST
|
I must be missing something : The REST API supports a resultOffset parameter to fetch records that are beyond maxRecordCount. https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm However, I cannot find this parameter in the 4.19 API https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-OffsetParameters.html nor in the 3.36 API https://developers.arcgis.com/javascript/3/jsapi/query.html. What is the way to get records with the 4.x version above maxRecordCount from my service ? Thanks a lot
... View more
05-17-2021
08:14 AM
|
1
|
3
|
1409
|
POST
|
Hi, I have published an ImageService from a mosaïc on an ArcGIS Server (10.7). Original data are 4 bits GRID rasters. The mosaic stores pixels values on 4 bits. Only values from 0-8 are used so I have max 9 unique values. I add the raster to the map and then I want to symbolize it using unique values. Here is the server response from the 'histograms' REST endpoint All values seem to be present. Though the proposed symbology below shows 2 times the value 4 and doesn't shows the value 7 Has someone ever encountered this behavior ? How can it be fixed ? Thanks !
... View more
04-01-2021
10:06 AM
|
0
|
0
|
507
|
POST
|
Hi John, I looked at your codepen again and there is one last thing I can't figure out : the data you're using has a symbology (color with three canals I guess), but you still get access to the original service value when you query it. I was trying to do the same in my app but when the layer service gets the RGB symbology, I get 3 histograms with max value at 255 (indeed, it's each color level for the pixel). How can I achieve the same thing as the service you're using, and get a colored service that sends back original values when it's called ? I link this Geonet post that is on the same subject and has gotten no answer till now https://community.esri.com/t5/arcgis-enterprise-questions/image-services-and-pixel-values/td-p/417939 Thanks a lots for your help ! Clément
... View more
03-10-2021
07:19 AM
|
0
|
0
|
1820
|
POST
|
Well thanks ! I thought I had to import projection...
... View more
02-25-2021
02:27 AM
|
0
|
0
|
1289
|
POST
|
Hi, I'm having a hard time figuring how to import "projection" from "@arcgis/core" I've installed it and then I try to import it in my React js app with import projection from '@arcgis/core/geometry/projection' But I get an error message : Attempted import error: '@arcgis/core/geometry/projection' does not contain a default export (imported as 'projection'). I don't know how to resolve the thing, when going to "projection.d.ts" there was a line export = projection That I tried to correct to export default projection; But it changed nothing and I'm not really aware of ts yet. Thanks for your replies !
... View more
02-24-2021
01:03 AM
|
0
|
2
|
1307
|
POST
|
Well for the moment I can access the JSON generated by the PrintTask with printTask._getPrintDefinition(<PrintParameters>, <PrintTemplate>) I can then try to modify it before sending it to the Export WebMap Service. At least the geometries in my graphicLayers are all serialized thanks to this method !
... View more
02-23-2021
07:01 AM
|
1
|
0
|
587
|
POST
|
Hi, With JS API 4.18, I've built an app that allows the user to inspect raster data. On the same area, several raster layers (ImageryLayer) are available. The user can draw graphics on the map in a graphicLayer. For output, the need is to provide the user with one map for each ImageryLayer, at the extent of the drawn graphics. Saying there are 10 ImageryLayer, the user would get 10 mapImages, each with one layer and drawn graphics. I'm aware of the PrintTask that I wanted to use, but all my ImageryLayers are available in the map, and after searching the API and internet, I've not found any way to specify the layers I want to be printed, and not print all of them. Is there any way to do that, or should I try to filter the JSON before sending it to the Export Web Map Task ? Thanks !
... View more
02-18-2021
01:48 AM
|
0
|
1
|
663
|
POST
|
Hi @JohnGrayson , thanks for the update, I took a look at the doc and it seems pretty straightforward ! Digging into my problem, I know now where is my issue : once you get the histogram of 0-255 values with number of pixels for each, how do you associate each value (0-255) to a use case value (in your codepen, water temperature) ? With statistics mix and max you get 0 and 255 but what about the values between ? Thanks a lot ! Clément
... View more
01-12-2021
07:30 AM
|
0
|
2
|
2072
|
POST
|
Hi John, Thanks a lots for your codepen, i'll try it with my datas and see if it works !
... View more
12-09-2020
01:20 AM
|
0
|
4
|
2173
|
POST
|
Hi John and thanks for your answer. Looking at the doc of Statistics and Histograms in the REST API, I don't understand what exactly contains the "histograms" response attribute and how are they customizable? I don't see any query attributes to specify the classes breaks I want to get, are there any ? Thanks a lot !
... View more
12-07-2020
01:19 AM
|
0
|
6
|
2189
|
POST
|
Hello, I'm trying to build a raster analysis tool : - users can view raster on their web browser - they can draw polygons of interest on the map - they can query for values of the raster's pixels in the polygons extents and get (for each drawn polygon) : - mean of raster value in the polygon - histogram of raster value in the polygon I thought I could use Javascript API to do this but I'm not able to find any method to get ImageryLayer pixel values intersecting a polygon. Is there any ? Furthemore, it seems like if the polygon is not visible on the map, the raster is neither. So accessing pixel value of a polygon which is not visible is impossible. Should I do this another way, using the REST API of the service ? Thanks for your advices !
... View more
11-30-2020
02:38 AM
|
1
|
8
|
2213
|
POST
|
Hi, I also have this question, as I can get selected features using getSelectedFeatures on a FeatureLayer, but cannot use it on a mapImageLayer. The select widget can select features on a mapImageLayer and highlight them. Once it's done, is it possible to get those features? Thanks !
... View more
09-17-2020
03:10 AM
|
0
|
1
|
464
|
POST
|
Hi, I'm stuck on the same problem, could you copy the content of your web.xml file to enable CORS ? Thanks a lot
... View more
09-04-2020
02:38 AM
|
0
|
0
|
691
|
Title | Kudos | Posted |
---|---|---|
1 | 03-15-2019 02:44 AM | |
1 | 05-17-2021 08:14 AM | |
1 | 11-30-2020 02:38 AM | |
1 | 02-23-2021 07:01 AM | |
4 | 07-27-2020 05:21 AM |
Online Status |
Offline
|
Date Last Visited |
06-07-2021
01:35 AM
|