POST
|
Hi Xander Bakker Thanks for the quick reply. Yes I can confirm that the "Geo_Frame" point FC is indeed in the same $datastore as the "Sections" polygon FC (The one the rule is built on) and I used the interface to add these. The code itself should not be a problem since it functions as expected when I capture polygons using the FC. The error message is encountered as soon as I publish it as a Feature Service (FS) and then try and capture a "Sections" polygon using this FS. I have used "Intersects" instead of the "Contains" function, as you proposed, and it works!: Using "Intersects" rather than "Contains" will satisfy my requirement but I am quite confident that there is a bug with the "Contains" function after my test results. What is the next step in reporting it? Could anybody else replicate the error?
... View more
09-30-2020
01:10 AM
|
0
|
1
|
1184
|
POST
|
Good day all. I think I might have encountered a bug but before reporting it as such I would like to ask if somebody else can replicate this issue. Context: I have a polygon FC which should count how many points it encloses and return the number upon creation. Software Version: ArcGIS Pro (2.5.1), ArcGIS Server (10.71) Arcade Script of Polygon FC: var GeopointFS = FeatureSetByName($datastore, "STAGING.LDR.Geo_Frame"); var ContaindPts = Contains($feature, GeopointFS) if (ContaindPts < 1) {return null} if (IsEmpty(ContaindPts)) { return null} var CntGP = Count(ContaindPts); return CntGP This script works perfectly fine when running on FC level, however when publishing and running it using the service I receive the following error on line 2: Arcade Error: Geometry type or nulle expected. On the left I attempt to add a polygon using the Feature Service, on the right using the Feature Class. The latter works as expected. From the ArcGIS Arcade version matrix found here, it is indicated that the "Contains" function, which is supported from Arcade verson 1.7 onwards should work on ArcGIS Enterprise server 10.7.1. Anybody else encountered this yet? Thanks for your considerations Nico arcade geometry, contains(), attribute-rules, attribute calculation error, arcade 1.7
... View more
09-28-2020
07:44 AM
|
0
|
3
|
1296
|
POST
|
Hi Eugene, did you ever get you question answered? I have a similiar requirement. I have points within a polygon. I would like the points to inherit the ID of a ID field within the polygon with a number at the end to uniquely identify it. For instance image I'm creating points within a polygon with ID 123456. With the smart-editor I can capture this value into a seperate field in my point FC "Poly_ID". My challenge is to get a unique value for the points as they are created within the polygon. The first being "Point_Nr" = 123456-0001, second "Point_Nr" = 123456-0002 and so forth. If "Point_Nr" = 123456-0001 already exist the next one I create must be "Point_Nr" = 123456-0002 and so forth. Any tips would be appreciated Nico
... View more
04-16-2020
07:47 AM
|
0
|
1
|
2835
|
POST
|
Hi 2CDSD 2C, Up to which point do you come that you say the widget does not work for WAB 2.2? I find that whenever I add the widget to the list.json, all the other widgets also dissapear in the WAB "Choose Widget" screen.
... View more
02-09-2017
01:44 AM
|
0
|
0
|
2923
|
POST
|
Hi Kevin, thanks for the app. It was very easy to implement with your instructions. All panes, pop-ups & the basemap captures perfectly. However for some reason the layers are not pulled through. Also if I have a chart widget open the values don't pull through and it will show "null" values. Have you come across this yet and have any idea to fix it?
... View more
01-25-2017
06:00 AM
|
0
|
0
|
2923
|
Online Status |
Offline
|
Date Last Visited |
03-24-2022
02:59 AM
|