POST
|
I believe the return for a popup needs to be an object now, so you have to return: return { type : 'text', text : 'my text here' } instead of just null or a features property. var return_text
IIf (IsEmpty($feature.ADS_Link_to_Recording_Report),return_text = null, return_text = $feature.ADS_Link_to_Recording_Report)
return {
type : 'text',
text : return_text
} Should work.
... View more
02-02-2024
05:37 AM
|
1
|
1
|
1188
|
POST
|
I believe what you're looking for is update(). arcgis.gis module | ArcGIS API for Python You can print dir(storymap) to get methods/attributes or help(storymap) to get the docs.
... View more
02-01-2024
04:33 AM
|
0
|
1
|
495
|
POST
|
Does this work? Your indicator should just count the number of objects where today's date is on or after the date closed and where today's date is on or before the opening date. If today was 1/8/24 and it closed on 1/1/24 with an open date of 1/10/24 -- "Today" is after the close date of 1/1 and also before the open date of 1/10. Indicator -> Data -> Settings -> Filter
... View more
01-30-2024
09:34 AM
|
0
|
0
|
305
|
POST
|
I'm actually stuck on something similar enough. It does look like there are 2 operations to do this: Upload: https://developers.arcgis.com/rest/services-reference/enterprise/upload.htm Append: https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-.htm I cannot for the life of me figure out the appropriate parameters for the post request; the response is just the upload item html page. It does look like the order of operations is to upload the shapefile to the feature service, get the item ID, then take the item id and append/upsert. I can do it this the browser just not via script. Via frontend Does not work. # Upload to our url and get our upload ID
featureservice_url = featureservice_url + "/uploads/upload"
# set req headers
headers = {
"Content-Type": "multipart/form-data"
}
# Get file and set data parameters
with open(shapefile_loc, 'rb') as f:
# file upload params
uploadparams = {
'item': f,
'f': json
}
r = requests.post(featureservice_url, data=uploadparams, headers=headers)
... View more
01-24-2024
10:43 AM
|
0
|
0
|
649
|
POST
|
Any luck moving your returns to the end in an if/else? if(step7Phone==null)
{return step4Phone}
else
{return step4Phone + TextFormatting.NewLine + TextFormatting.NewLine + step8Phone} After line 6 if you just return step4Phone does it work for everything? Is step7Phone not returning null and instead returning something unhelpful like [' ']?
... View more
01-22-2024
07:01 AM
|
0
|
1
|
1027
|
POST
|
Thanks, I did try updating the visualization through adding the layer to a map via endpoint, but there is no option to "save" once updated. I tried save as, but the layers drawingInfo remains blue. The challenge here is we're not loading this layer back into an AGOL map; the visualization changes used to save to the HFS. We have a custom-code web application that uses ArcGIS Server, Oracle, and the JS Developer SDK that allows the ingestion of Feature Service Endpoints. I have users that develop HFS's via AGOL. These HFS's are then ingested into our product for building work products and conducting analysis. Our users used to be able to load shapefiles or information from other sources, change the style, then save the layer. That same workflow now will change the style in AGOL and if that layer is used in an AGOL map, the style displays correctly. However, when our application wants to ingest that layer through the FS/0 endpoint, whatever style it was originally uploaded as is displayed, since AGOL never updates the features drawingInfo. Below is our application loading the endpoint as blue. In AGOL this layer has been visually updated and saved to be Red. It will display Red in an AGOL map and in ArcGIS Pro if loaded from the content pane. If i load this layer via URL, it is blue. It seems like once an HFS is published, there is no way to update a layers drawingInfo in AGOL; the layer has to be pulled into ArcGIS Pro, extracted/copied, restyled, and completely republished.
... View more
01-08-2024
07:28 AM
|
1
|
0
|
1032
|
POST
|
Confirm we have tried both the save from layer properties and the save on the top left as indicated. Either save button location triggers "Save Changes" far as I can tell. I'm baffled that it displays correctly in ArcGIS Pro via the catalogue pane but incorrectly through importing the service endpoint. Thanks for taking a peek. I was somewhat hopeful it was a pebkac situation. The data is public and it's just for figuring this out, so our endpoint is Style Testing
... View more
01-05-2024
01:36 PM
|
0
|
1
|
1074
|
POST
|
Hi All, I had a question regarding how Layer Styles are saved/applied on AGOL. In short, it looks like you can no longer update a Feature Layers style and have it save to drawingInfo via AGOL. Once the Feature Layer is published, the drawingInfo cannot be updated through the Visualization options and must be exported into ArcGIS Pro and republished with updated symbology. Example: User navigates to source data available UAS Restrictions Downloads My User opted to download as a shapefile, but one could just create and save a layer via URL source; no effect on the end outcome. User creates a featurelayer in AGOL via the "New Item" button and drags zip file in, following the prompts User opts to create a hosted feature layer from the shapefile This layers styling is Blue transparent solid fill. We want a Red (ff0000) fill at 25% transparency with a dotted outline. Through the Viz tool, update the fill and outline of the hosted feature layer from blue to red Under Properties -> Information, save the changes. On exploration, there are only options to "use styling as it was published" or "Use map properties". Either option will not change the drawingInfo. Now in ArcGIS Pro, sign into your portal and load this map through the Catalog -> Portal. The style does load into Pro this way. Now load it through Add Data -> Data from Path. Load the yourendpoint/FeatureServer/0/ URL. The styling is the base styling and not the styling applied/saved to the layer via the viz tool. If you go to the drawingInfo, the info remains as it was published. Is there a way to update a Layers styling in AGOL at the FeatureLayer level and not the Map Level (or however it seems to be working now?) Thanks!
... View more
01-05-2024
11:15 AM
|
3
|
6
|
1147
|
POST
|
Is there any way to create a spatially enabled dataframe with Z enabled? I'm here: https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#geoaccessor I can call the fact that has_z is false. I want it to actually make an sedf that has_z enabled but there's no argument to pass to do so? I thought maybe adding a 'z' to a shape column in a dataframe and then converting it to an sedf would work, but that did nothing. If the geoaccessor lets me evaluate has_z, there has to be a way to make has_z true, yeah? Is my geometry object wrong? does it go somewhere in there before creating the SEDF? If so, where in the docs could I find how it's structured? Thanks for any help this is driving me crazy. Also I am doing this way wrong that's also helpful so just shout.
... View more
08-11-2022
12:28 PM
|
0
|
0
|
946
|
POST
|
So Incidents do get tagged as ended if I remove all closing conditions: Incident Detector Processor—Process Event Data(10.7.1) | ArcGIS Enterprise When configuring Incident Detector, you must specify an opening condition; a closing condition, however, is optional. If a closing condition is not specified, the processor will use a logical negation of the opening condition as an implicit closing condition. It doesn't close on the logical negation; but it does now close based on the expiry time, which isn't a 100% solution but it's better than not being flagged at all. I keep coming back to my #1 question above relating to the 'All these are true' closing condition. Does that geometry have to exist as a geofence in order to evaluate as TRUE? I get the feeling it does but would love someone more seasoned to set me straight. Thanks!
... View more
12-26-2019
07:11 AM
|
1
|
0
|
669
|
POST
|
Hi, I am on Geoevent Server 10.5 Patch 2. My configuration looks a bit weird only because I have been trying to troubleshoot and ended up creating 2 separate threads from the same event trigger. In reality the 'Is event Ended' filter connects to the bottom field enricher, I set a flag to N, map to the same geoevent definition, and update the same output map layer. The Facilities_4326 input is a collection of points. I compare these points against specific National Weather Service Polygons: The Geometry Inside ANY works well. As soon as a point is detected and goes through the process, I re-enrich, set my field, map to an AGOL map layer, set my display flag to Y, and end up showing only those facilities inside a geometry on my map: nws-incident-field-reducer-DASH-END,Started,EAT Airport,"-120.20573741699997,47.398089250000055",Y My incidents never end: nws-incident-field-reducer-DASH-END,Ongoing,EAT Airport,"-120.20573741699997,47.398089250000055" nws-incident-field-reducer-DASH-END,Ongoing,GTF Airport,"-111.37061002799999,47.48265391700005" nws-incident-field-reducer-DASH-END,Ongoing,OTH Airport,"-124.24702777799996,43.41694444400008" nws-incident-field-reducer-DASH-END,Ongoing,15OR Military Tower,"-123.93136102099999,46.11593221000004" nws-incident-field-reducer-DASH-END,Ongoing,GTF Combined Tower/Approach,"-111.35959746699996,47.48005864400005" nws-incident-field-reducer-DASH-END,Ongoing,OTH Federal Contract Tower,"-124.24799232899994,43.41795984100003" nws-incident-field-reducer-DASH-END,Ongoing,EAT Airport,"-120.20573741699997,47.398089250000055" nws-incident-field-reducer-DASH-END,Ongoing,GTF Airport,"-111.37061002799999,47.48265391700005" nws-incident-field-reducer-DASH-END,Ongoing,OTH Airport,"-124.24702777799996,43.41694444400008" nws-incident-field-reducer-DASH-END,Ongoing,15OR Military Tower,"-123.93136102099999,46.11593221000004" nws-incident-field-reducer-DASH-END,Ongoing,GTF Combined Tower/Approach,"-111.35959746699996,47.48005864400005" nws-incident-field-reducer-DASH-END,Ongoing,OTH Federal Contract Tower,"-124.24799232899994,43.41795984100003" nws-incident-field-reducer-DASH-END,Ongoing,EAT Airport,"-120.20573741699997,47.398089250000055" Questions: 1. Will it never evaluate the 'All these are TRUE' if the geometry does not exist as a geofence? 2. I have tried EXIT, but that does not work either. Neither my points nor my geometries really move. My geofences eventually delete, and my point should evaluate as inside until that geofence is removed. EXIT doesn't set my 'Ended' flag. 3. If I set it to ANY of these are true, it does end up triggering an 'Ended' condition correctly, but that's not the logic I need. 4. I set the expiry time to 6400 seconds to just straight up end incidents and they still never get reported as 'Ended' in my output. Any thoughts? I am open to anything. Going nuts with it feel like I'm missing something crazy obvious. Appreciate your time John
... View more
12-23-2019
04:05 AM
|
0
|
1
|
883
|
POST
|
I may end up doing just that. It seemed like a lot of overhead considering the layers update/add/change frequently. If I end up burning too much time on the above add to definition table, I'll just overwrite the whole service. Thanks!
... View more
09-30-2019
03:50 AM
|
0
|
0
|
4064
|
POST
|
Hi Ryan appreciate the snippet. I could not figure out how to get a table added and this seems to do just that. I've got to wrap up another project then I'm diving back into this one. Thanks!
... View more
09-30-2019
03:45 AM
|
0
|
1
|
4064
|
POST
|
I am having trouble determining the proper way to use add_to_definition: https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html A sample js dict seems to be here: https://developers.arcgis.com/rest/services-reference/add-to-definition-feature-service-.htm This may end up me not being able to determine the appropriate workflow. When I used ArcGIS Pro to publish my feature service the first time, the feature layers were published under one service definition (Map): I am able to update layers using layer.edit_features, and remove them using featureLayerCollection.manager.delete_from_definition(json_delete_dict). What I am trying to do is write a json_dict directly to the 'Map' Service Definition. I don't want to publish something separately via item.publish (unless I'm supposed to?): https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=publish#arcgis.gis.Item.publish I want to directly 'append', for lack of a better word, the layer to the service definition in the same way the other layers and data were published the first time: Is it possible to directly add a layer to a service definition without publishing the item first? Am I off base? If I'm not even close, can someone walk me through the steps to add a layer to a service definition? Is there sample code anywhere (specifically a python add_to_definition json dict)? Appreciate any and all insight.
... View more
07-22-2019
08:30 AM
|
0
|
5
|
4674
|
POST
|
There is a log file that will give you more info on how to track down errors: In this instance, it's tossing this error: ToDefinition error { "code": 400, "details": [ "Introducing FOREIGN KEY constraint 'REL_FK_service_d857e05ca59241afab7c00490723b521_POOLS2_1' on table 'service_d857e05ca59241afab7c00490723b521_POOLS2' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Could not create constraint or index. See previous errors." ], "message": "Unable to add feature service definition." } Been messing with it for a bit, and it seems to not like the fact your repeat name is Pools. Try changing it to PoolsRepeat or something else. I was able to publish it successfully with that change.
... View more
06-26-2019
03:51 AM
|
0
|
1
|
454
|
Title | Kudos | Posted |
---|---|---|
2 | a month ago | |
1 | 01-08-2024 07:28 AM | |
1 | 02-05-2024 06:47 AM | |
1 | 05-24-2024 07:09 AM | |
3 | 01-05-2024 11:15 AM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|