POST
|
Hello, I am trying to create a multi polygons feature into a hosted feature layer and I am stuck! I am creating the array of rings on the fly and trying to replay the array of rings from my geometry template. When I print the information, everything looks good, but when I try to create a the feature, my "array" of rings is really a "string" of rings. below is the code and the issue I am facing Any help would be much appreciated Thanks! geomList = []
geoArray = []
for d in search_SAhistcountTVMAXFeat:
if d.attributes['LandRecordsIDCount']>1:
print(d)
#Select at records with that specific LandRecordID
fExpression = "LandRecordsID='" + d.attributes['LandRecordsID'] +"'"
print(fExpression)
SLHFLcount = LandHFL.query(where=fExpression )
feat_list = SLHFLcount.features
### NEED TO EXTRACT SINGLE PART FOR EACH POLYGONS
strPoly =''
strPoly = '['
print("RAW Geometry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
for f in feat_list:
print(f.geometry['rings'])
print("")
strPoly = strPoly+str(f.geometry['rings'])[1:-1]+','
strPoly = strPoly[:-1]
strPoly= strPoly+']'
print("All Geometry as String~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print(strPoly)
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print(" ")
#single part template
drtest = {'rings': [[[-10478969.9507, 5105644.4034], [-10477947.6054, 5105639.626], [-10477952.3827, 5104555.1757], [-10478998.6146, 5104559.953], [-10479017.7238, 5105333.8779], [-10478979.5053, 5105338.6552], [-10478969.9507, 5105644.4034]]],'spatialReference': {'wkid': 102100,'latestWkid': 3857}}
print("Rings from template")
print(drtest["rings"])
print(" ")
print("after update")
drtest["rings"] = strPoly
print(drtest["rings"])
print("Creating Template-------------------------")
features_to_be_added = []
template_hostedFeature = deepcopy(SLHFLcount.features[0])
template_hostedFeature
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
drShape = drtest #geom_union_b
print(drShape)
new_feature = deepcopy(template_hostedFeature)
print("")
# assign the updated values
new_feature.geometry = drShape #output_geometry[0]
new_feature.attributes['LandRecordsID'] = d.attributes['LandRecordsID']
#new_feature.attributes['Property'] = ''
print("Final new feature-------------------------")
print(new_feature) results:
... View more
04-21-2024
01:50 PM
|
0
|
2
|
322
|
IDEA
|
Hi @EmilyGeo it's a great improvement, thank you! Now if you guys could just add the options to select what type of polygons we want to draw that would be fantastic. It's available in ArcGIS Earth... why not in a Web Map???
... View more
04-12-2024
12:45 PM
|
0
|
0
|
186
|
POST
|
Hello, have you seen this post? this should help you https://community.esri.com/t5/arcgis-geoevent-server-blog/geoevent-converting-strings-to-dates/ba-p/902141#:~:text=String%20to%20Date%20conversion%20format...&text=It%20turns%20out%20that%20if,ddThh%3Amm%3Asszone%22.
... View more
04-12-2024
06:09 AM
|
0
|
0
|
280
|
POST
|
Hello everyone I am having the same issue with a story map that was created more than a a year ago and is being used on a daily basis. The Story map load if I am logged in but NOT in incognito mode. This is not just happening for me, but other staff member and citizens outside our network this is the story map: https://storymaps.arcgis.com/stories/58266c1834d844a8ab354dca3ecdd638 this is the error
... View more
04-02-2024
06:52 AM
|
0
|
0
|
302
|
POST
|
Have you tried to run your flow by NOT using the new Designer? Last month at the ESRI Dev Summit it was strongly suggested to keep using the "old" designer. It might not change anything for you, but it doesn't cost anything to try it.
... View more
04-02-2024
06:22 AM
|
0
|
1
|
291
|
POST
|
I also have a similar issue... I have a field (long) with default to NULL (which I want all new records to have), but when I add a feature, the field is updated with 0. I need that field to be NULL
... View more
01-10-2024
06:56 AM
|
0
|
0
|
244
|
POST
|
I have been experiencing the same issue FUID field (TXT-10) on Hosted feature layer and SDE FC, setup the JOIN.. nothing..... I added a new field FUID_L (Long) on both the HFL and SDE FC and was able to get the JOIN working. the Text fields were "clean", no extra spaces, no nothing.... This JOIN in TXT fields used to work....
... View more
01-04-2024
01:42 PM
|
0
|
1
|
293
|
IDEA
|
In ArcGIS Earth 2.1, you have more editing capabilities than Experience Builder. If you have a polygon layer , you can create a polygon, create a buffer, square, etc... if you have a line, you can do Direction-Distance... Why can't we have these functions (and more) in the Map Viewer and EB?
... View more
01-04-2024
11:46 AM
|
0
|
0
|
950
|
POST
|
@AnthonyLatini thanks for the info, is ESRI have any plans to have the visual certified? if not, what other option would you recommend to embed a map into a report? Thanks!
... View more
12-18-2023
06:16 AM
|
2
|
0
|
1003
|
POST
|
Hi I created a simple report in Power BI (Map and table) and when I try to export to PDF, the map widget return this: is this a known issue? Thanks! Report PDF
... View more
12-15-2023
12:28 PM
|
2
|
3
|
1112
|
POST
|
I think you might be missing something in your first expression (you are not referring the attribute section). In your case it's probably: Body/data/attributes/FIELDNAME below is a sample of a breakdown below is another example I have: hope this help (and not confuse you more 😁)
... View more
12-13-2023
10:44 AM
|
0
|
1
|
1106
|
POST
|
Could you try to add another Compose and put the expression to convert to epoch to see if that works. Then you would put the result of the new Compose into the 'Update_a_record_in_a_feature_layer'. Just to make sure you are getting the correct epoch value. Just an idea...
... View more
12-12-2023
12:51 PM
|
0
|
3
|
1114
|
POST
|
Hi Erica, can you show us what you are getting as output from the Apply Each and Compose when you run the flow?
... View more
12-12-2023
12:04 PM
|
0
|
5
|
1117
|
POST
|
Can you show us your Upload file from URL settings? I have a similar flow and below are my settings. This is working just fine for me
... View more
12-05-2023
06:30 AM
|
0
|
1
|
1331
|
Title | Kudos | Posted |
---|---|---|
1 | 10-14-2021 10:59 AM | |
1 | 07-11-2024 08:04 AM | |
2 | 06-27-2024 07:08 AM | |
1 | 04-22-2024 06:23 AM | |
1 | 11-22-2022 12:10 PM |
Online Status |
Online
|
Date Last Visited |
7 hours ago
|