POST
|
Hi Pam, as far as I can tell this happens because in your list of types you have a type id that is null. See: https://services1.arcgis.com/WHM6qC35aMtyAAlN/ArcGIS/rest/services/Boise_Parks_Trails_Open_Data/FeatureServer/0 -> the first type in the list. I don't think you need that type as there is no name, no description attached to it? Try to remove it and republish the item and the popup should show up. However, this is also a bug on our side, we should just ignore a null value for the type. I opened up an issue, thanks for reporting! Raluca
... View more
05-11-2018
01:15 AM
|
1
|
5
|
1066
|
POST
|
Hi Richard, sorry for the late reply! You are right, a Geoprocessing Service is for now the clean solution, as we don't have this exposed in the API. We will add these calculations to the GeometryEngine, but as of now, we don't have them there and they will surely not be there by the summer release. And yes, this should boil down to solving the intersection of a line with the plane in which the polygon resides. One more question: is each polygon lying in a plane? I couldn't see the video, I think it's not linked.. I will try to write a small sample for this; when I have it done, I'll link it here. However, if the polygon is more like a mesh type of geometry then it might need triangulation and then it gets complicated.
... View more
05-09-2018
03:54 AM
|
0
|
0
|
1810
|
POST
|
hmm still a bit confused when you say surface - does that mean an elevation surface? or do you just have polygons with height values? And are you trying to figure out only which 3D surfaces are intersected by the lines or also where exactly they intersect to do some other measurement? Anyway your use case sounds quite similar to an app Kristian Ekenes wrote: https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/build-3d-web-apps-with-your-2d-data/ about airspace encroachment, so I want to point you to it.
... View more
05-07-2018
11:38 AM
|
0
|
3
|
1810
|
POST
|
Hey Richard, Can you tell us more about your use case? What are you trying to do? If you have vector features that have z values, why are you bringing in raster data? Unfortunately we don't support 3D geometry operations for now, we write that in the geometryEngine documentation: geometryEngine | API Reference | ArcGIS API for JavaScript 4.7: "A client-side geometry engine for testing, measuring, and analyzing the spatial relationship between two or more 2D geometries."
... View more
05-07-2018
09:07 AM
|
0
|
5
|
1810
|
POST
|
ok, I see. Yes, that makes sense to spare the requests. In 4.8 you can remove the workaround, sorry again about the bug..
... View more
04-23-2018
04:07 AM
|
0
|
0
|
4047
|
POST
|
Hi Qi, awesome, sorry that you had to work around things to make it work. Next release it will be fixed and you can go back to normal workflow. One thing I thought about: is it really mandatory that you query the layer view? I tried it out and querying the extent on the layer works. Best, Raluca
... View more
04-20-2018
07:13 AM
|
0
|
2
|
4047
|
POST
|
Hi Qi, that is indeed a bug on our side. We'll fix this for 4.8. Can you tell me what you're trying to achieve, maybe we can suggest a workaround until then. Raluca
... View more
04-18-2018
09:29 AM
|
1
|
4
|
4047
|
POST
|
Hi Auerlie, we don't have out of the box tools for calculating 3D volumes. I guess you could build your own, but it probably wouldn't be extremely accurate. I didn't really understand your workflow: what do you mean by selection of surface? I imagine that if you wanted to calculate the volume between two surfaces, you would have to draw a polygon or somehow select the area for which you want to calculate the volume. Then you could split the polygon in a grid and for each point in the grid I would get the elevation in each of the surfaces and then calculate the volume as grid cell area * height difference. Summing up the volumes for each of the cuboids should you give you an approximation of the whole volume (not very accurate though). As for making a widget out of it, check out this tutorial: Create a custom widget | ArcGIS API for JavaScript 4.6 or have a look at this video from devsummit 2017: Building Your own Widget with ArcGIS API for JavaScript - YouTube Raluca
... View more
04-18-2018
05:49 AM
|
0
|
0
|
415
|
POST
|
ok, thanks for the data, I'll have a look at it by the end of this week and come back with a reply.
... View more
11-07-2017
01:14 AM
|
0
|
0
|
203
|
POST
|
Could you guys tell me why you prefer this over the public API? If I understood correctly you want to have only one request with all the data in the beginning rather than making several requests? What is the end goal for you Yunpiao?
... View more
10-25-2017
09:23 AM
|
0
|
0
|
1080
|
POST
|
hmm, that sounds like a bug. Did the buildings display? Do you still have the service? It would be useful if you could pass it along so we can investigate.
... View more
10-25-2017
09:21 AM
|
0
|
2
|
1080
|
POST
|
First of all some theory about how this works: 1. Publishing a scene layer from an slpk will create a scene layer without an associated feature layer. Therefore, you can't query the scene layer (queries on scene layer are redirected to the associated feature layer which doesn't exist in your case). The only option in this case is to query the scene layer view. 2. Scene layer view queries on the other hand have a more limited functionality. First of all you can only query the features that are currently loaded (so not the whole layer). Second of all the number of properties that can be used for a query is limited: you can't use where for example (therefore the error). For queryFeatures only outFields and objectIds properties can be used. You don't need to send dummy variables on the renderer, you can set them in the outFields and that will return them in the query on the layer view (FYI @Thomas_Solow). Second: what is your use case? We might help you better by knowing what the goal is. And a few more tips: If you need to query features based on attributes then one options is to publish the scene layer from a feature layer in AGO (see here a blog post on how to do this or official documentation if you prefer) and then use the query on the scene layer which supports where and which in this case will work because you'll have an associated feature layer. Another options is to publish a feature layer with the attributes and the same objectIds as the features have in the scene layer and manually link the two like in this sample: Query a SceneLayer's linked FeatureLayer | ArcGIS API for JavaScript 4.5.
... View more
10-25-2017
06:16 AM
|
0
|
7
|
1080
|
POST
|
There's nothing obvious that you are missing, it's a known issue... Only the vertices get information about how they should be aligned to the ground. We can't tell where the center of the polygon should be placed because there's no geometry there. Therefore polygons that spread along the globe will have their inner parts sunk into the ground. One thing you can do is use a local scene? that way the center of the polygon won't be underground because of the earth curvature. I noticed that the polygons paths (the margins) are also sinking. That one you can fix by densifying the path using geometryEngine. Here's an example on how to do that client side on a line so that it follows the terrain: Edit fiddle - JSFiddle You could apply it to polygons as well.
... View more
10-19-2017
12:08 PM
|
0
|
1
|
1152
|
POST
|
Leave the uniqueValueInfos as they are uniqueValueInfos: [{
value: "Section_99_7",
symbol: ssiSym,
label: "Special Security Instructions"
}, {
value: "Section_91_137_a"
symbol: hazardSym,
label: "Disaster/Hazard Area"
}, {
value: "Section_91_145",
symbol: sportSym,
label: "Aerial Demonstration / Sporting Event"
}, but instead of the renderer field add a valueExpression that will extract the type from the tfr_type columns. I'm not an expert in Arcade, so I've put together something like this: var s = "Section_21_7_a_21";
var splitArray = Split(s, "_");
var typeArray = [];
for (var i in splitArray) {
IIf(i < Count(splitArray) - 1, typeArray[i] = splitArray[i], null);
}
return Concatenate(typeArray, "_"); Kristian Ekenes do you know if there is a straightforward way to remove the last 2 characters from a string with Arcade? This seems like a workaround. We currently don't support your last idea...volume visualization will come, but it's not on our priority list right now. I was trying to think of a workaround, but I guess you can't really connect the vertices if the 2 polygons are not the same?
... View more
10-17-2017
03:08 AM
|
1
|
2
|
1152
|
POST
|
ok, in this case I guess queryExtent is the best way to get the location of the popup. Happy to hear that it worked.
... View more
10-13-2017
02:50 AM
|
0
|
0
|
462
|
Title | Kudos | Posted |
---|---|---|
1 | 01-24-2024 04:54 AM | |
1 | 01-23-2024 02:52 AM | |
3 | 01-19-2024 12:49 AM | |
4 | 03-27-2023 10:34 AM | |
7 | 03-13-2023 08:00 AM |
Online Status |
Offline
|
Date Last Visited |
Sunday
|