POST
|
# I search for a map: search_result = gis.content.search("title:{}".format(title) ) mp = [item for item in search_result if item.title == title][0] #I get the layers from the item answer = mp.layers[0] #answer is a feature collection not a feature layer. So when I call: with arcpy.da.SearchCursor(answer, where_clause="", field_names=column_list) as cursor: #I get the error "in_table' is not a table or a featureclass" #How do I convert from a feature collection to feature class? What is the difference?
... View more
02-28-2020
11:21 AM
|
0
|
0
|
1201
|
POST
|
Is there a way to clone the environment without using an http connection to access this file? Our server is under pretty tight security.
... View more
02-11-2020
12:14 PM
|
4
|
0
|
1220
|
POST
|
Using Python and ArcGIS Pro, how do I transfer tags, description, thumbnails, sharing groups, metadata, etc from one portal item to another?
... View more
02-10-2020
09:28 AM
|
0
|
1
|
650
|
POST
|
Okay, I see it in the catalog. It is interesting because the project is only 24kb so I assumed it didn't import. Must be in the geodatabase. Thanks!
... View more
02-10-2020
09:24 AM
|
0
|
0
|
1706
|
POST
|
It is interesting, though. In my script it is behaving like it is being imported. I change the MXD and the result changes correctly later on when I publish. But when I check the aprx it is empty.
... View more
02-05-2020
07:41 AM
|
0
|
0
|
1706
|
POST
|
No I am not getting any error messages at this stage.
... View more
02-05-2020
06:54 AM
|
0
|
1
|
1706
|
POST
|
This error came up after I renamed my file with underscores instead of spaces. Then I changed it back and I still have the error. I broke my app. Unlike other users I specified the owner and title and only came back with one search result.
... View more
02-04-2020
01:29 PM
|
0
|
0
|
1978
|
POST
|
I cannot import an mxd. It saves as a blank document. I have the following code: #Open the blank project aprx_blank = arcpy.mp.ArcGISProject(aprx_path_blank) #create a copy of the blank project to the local drive aprx_path = temp_path / "aprx_temp.aprx" aprx_path_string = str(aprx_path) if os.path.exists(aprx_path_string): os.remove(aprx_path_string) aprx_blank.saveACopy(aprx_path_string) aprx_copy = arcpy.mp.ArcGISProject(aprx_path_string) #Import the mxd into the copy projet mxd_path_string = str(root / directory / (file_name + ".mxd")) aprx_copy.importDocument(mxd_path_string) aprx_copy.save() mxd_path_string is a valid URI that points to the correct map. When I open the aprx_temp.aprx file in ArcGIS Pro, the map is empty. Why isn't save working?
... View more
02-04-2020
09:41 AM
|
0
|
5
|
1808
|
POST
|
When I do "update" only the service definition is updated. It does not update the Feature Layer.
... View more
02-03-2020
11:23 AM
|
0
|
1
|
1144
|
POST
|
So if I use update my metadata (including tags, description, credits, etc) will persist?
... View more
02-03-2020
09:19 AM
|
0
|
0
|
1144
|
POST
|
What is the difference between CreateWebLayerSDDraft and getWebLayerSharingDraft? I am trying to update a map on the portal with a map on the internal network. GetWebLayerSharingDraft pulls from the portal? Do I need to call getWebLayerSharingDraft to pull data like tags, description, and credits to pass into CreateWebLayerSDDraft? I want all the metadata to persist on the portal document except the map itself. I am running ArcGIS Pro.
... View more
02-03-2020
07:36 AM
|
1
|
1
|
2656
|
POST
|
I am making a buffer in an ArcGIS Pro Add-in. How do I set the units? GeometryEngine.Instance.Buffer() takes a geometry and a distance. How do I get the map's units so I can choose the metric or US value I give the buffer method?
... View more
01-24-2020
10:07 AM
|
0
|
1
|
710
|
POST
|
how do I activate an alternative python environment?
... View more
01-23-2020
11:52 AM
|
0
|
0
|
9859
|
POST
|
What is the difference between update and publish for service definitions in arcpy and AGOL?
... View more
01-22-2020
08:05 AM
|
0
|
4
|
1207
|
Title | Kudos | Posted |
---|---|---|
1 | 02-03-2020 07:36 AM | |
4 | 02-11-2020 12:14 PM | |
1 | 01-16-2020 05:57 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|