|
POST
|
Hello I have this code which bring different fields from another layer to pop up but I can't get the result on popup var fips = $feature["parent_id"]
var dd = FeatureSetByName($map,
"Survey v2", ['age','gender','race'],False)
var fillterSur = "survey_id = @fips"
var cou = First(Filter(dd, fillterSur))
var popupTEXT = "Age: "
+Text(cou,'#,###')
var popupTEXT = "gender: "
+Text(cou,'#,###')
var popupTEXT = "race: "
+Text(cou,'#,###')
return popupTEXT The result I am getting is like this :
... View more
08-05-2022
08:22 AM
|
0
|
0
|
1453
|
|
POST
|
Hello I am using Jupyter Notebook and I am getting this error I was wondering with new update to ArcGIS API for Python anybody find a way to fix this error? SSLZeroReturnError Traceback (most recent call last) SSLError: Please set verify_cert=False due to encountered SSL error: HTTPSConnectionPool(host='nyc.maps.arcgis.com', port=443): Max retries exceeded with url: /sharing/rest/oauth2/authorize?response_type=code&client_id=arcgisonline&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&state=TOMYJv8XYm4lnIX6XaFW5Eq4lx3hSe&expiration=20160&allow_verification=false&style=dark&locale=en-US (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1129)')))
... View more
07-07-2022
09:49 AM
|
1
|
0
|
1293
|
|
POST
|
Thanks for replay which version of SQL Server ODBC driver?
... View more
06-30-2022
09:33 AM
|
0
|
0
|
900
|
|
POST
|
Hello After updating ArcPro to 3.0 and update .Net to 6.0.3, I can't connect to database in ArcCatalog anymore?
... View more
06-30-2022
08:24 AM
|
0
|
3
|
942
|
|
POST
|
@jcarlson This is working but how can I get return in popup I am getting [object Object]
... View more
06-16-2022
10:01 AM
|
0
|
1
|
2046
|
|
POST
|
Hello, I need arcade code to return borough name for each community boards. My table don't have borough name field and I can't add one. I have only community board code. Each community board start with specific number which represent each borough. I have this code so far var portal = Portal("https://www.arcgis.com")
var CD = FeatureSetByPortalItem(Portal,
"itemID",0,['BoroCD'], true);
if (Find("1",['BoroCD'], 0)>0) {
return "Manhattan";
} else if (Find("2", ['BoroCD'], 0)>0) {
return "Bronx";
} else if(Find("3", ['BoroCD'], 0)>0) {
return "Brooklyn";
} else if(Find("4", ['BoroCD'], 0)>0) {
return "Queens";
} else if(Find("5", ['BoroCD'], 0)>0) {
return "Staten Island"
}
return CD
... View more
06-16-2022
06:42 AM
|
0
|
7
|
2128
|
|
POST
|
Hello I found this code from esri blog : https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/common-calculated-expressions-for-arcgis-field-maps/ I am trying to get information of building specific BBL from MapPLUTO when they create or move point near the building I get this code from above blog but I am getting this error Execution Error:Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference. // If feature doesn't have geometry return null
if (IsEmpty(Geometry($feature))) { return null }
// Get the parcels layer
var parcels = FeatureSetByName($map,"MapPLUTO")
// Buffer the current location and intersect with parcels
var bufferedLocation = Buffer($feature, 100, 'feet')
var candidateParcels = Intersects(parcels, bufferedLocation)
// Calculate the distance between the parcel and the current location
// Store the feature and distance as a dictionary and push it into an array
var featuresWithDistances = []
for (var f in candidateParcels) {
Push(featuresWithDistances,
{
'distance': Distance($feature, f, 'feet'),
'feature': f
}
)
}
// Sort the candidate parcels by distance using a custom function
function sortByDistance(a, b) {
return a['distance'] - b['distance']
}
var sorted = Sort(featuresWithDistances, sortByDistance)
// Get the closest feature
var closestFeatureWithDistance = First(sorted)
// If there was no feature, return null
if (IsEmpty(closestFeatureWithDistance)) { return null }
// Return the address
return `${closestFeatureWithDistance['feature']['ADDNUM']} ${closestFeatureWithDistance['feature']['ADDRESSNAM']}` also I found this solution from @XanderBakker but I don't know where I need to add it and how combine them to one code function LatLonToMeters(lat, lon) {
// convert from long/lat to google mercator (or EPSG:4326 to EPSG:900913)
// Source: https://gist.github.com/springmeyer/871897
var x = lon * 20037508.34 / 180;
var y = Log(Tan((90 + lat) * PI / 360)) / (PI / 180);
y = y * 20037508.34 / 180;
return [x, y];
}
var lon = -118.15;
var lat = 33.80;
var xy = LatLonToMeters(lat, lon);
Console(xy);
var pointJSON = {'x' : xy[0], 'y' : xy[1], 'spatialReference' : {'wkid' : 102100}};
var pnt = Point(pointJSON);
Console(pnt);
return pnt;
... View more
06-08-2022
08:41 AM
|
0
|
1
|
2111
|
|
POST
|
I am having same problem. However, when I am running OD tool on QA it is working. For production I created view and test it which didn't work. for qa I don't have view and it isn't public either but I was able to create layer.
... View more
05-25-2022
06:50 AM
|
0
|
0
|
1287
|
|
BLOG
|
Hello I have search function which I set to bind::esri:fieldType null and doesn't store any data on hosted layer. Can I change null to String type without effecting hosted layer without deleting data and store new information on new field?
... View more
05-13-2022
07:07 AM
|
0
|
0
|
49057
|
|
POST
|
Hello All, I am looking for a arcade code which I can bring one or two fields from another table and join it with another hosted table then use it on dashboard as Table or list. I don't know if this is possible using Arcade? I can use join function in arcgis online but how can I keep that up to date
... View more
05-12-2022
10:22 AM
|
0
|
3
|
7147
|
|
POST
|
hello it is enable do you have access to link above
... View more
05-03-2022
02:02 PM
|
0
|
0
|
1330
|
|
POST
|
Hello How can I have access to Esri gallery for Notebooks? https://www.esri.com/en-us/arcgis/products/arcgis-python-libraries/gallery its ask me for Esri and Password but my user and password for arcgis online doesn't work.
... View more
05-03-2022
12:49 PM
|
0
|
4
|
1366
|
|
POST
|
something like this in one fields: Aid Bid Cid Aid, Bid, Cid x y z x,y,z all fields are string and in one table. I am using table widget in dashboard
... View more
03-30-2022
01:41 PM
|
0
|
1
|
1810
|
|
POST
|
Hello all I am trying to combine three fields for webservice to one field and show it on table in dashboard. I don't know if this is possible or not for now or I can use Arcade for this. I don't want to add field to data.
... View more
03-30-2022
08:49 AM
|
1
|
3
|
1857
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-26-2023 07:59 AM | |
| 8 | 01-15-2025 08:56 AM | |
| 1 | 01-15-2025 08:57 AM | |
| 1 | 03-30-2022 08:49 AM | |
| 2 | 10-24-2024 06:53 AM |