POST
|
I am able to perform a simple "print" statement for all the mxd inside that folder and getting desired results. So I am sure it is not an python indentation problem. the piece of code is able to read through the contents inside the folder and not throwing any error. The issue is tied to the mandatory requirement for "package map" description field. But there is no parameter associated with arcpy packagemap_management which I can fill through command line. The error clearly shows that the description is necessary ,but it does not support pushing that value through the above code. Runtime error Traceback (most recent call last): File "<string>", line 9, in <module> File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 8197, in PackageMap raise e ExecuteError: #ERROR 001117: Map description property must be set Failed to execute (PackageMap). Now since I want to iterate the job for all the mxds inside the folder, how do I bypass that requirement. Or rather set it via arcpy using the above code for all the mxds.
... View more
02-03-2017
08:37 AM
|
0
|
0
|
1277
|
POST
|
This description seems to be for individual layers. I am looking for "Map Package" property: Description field. Please have a look at the screenshot I shared in my earlier comment.
... View more
02-02-2017
08:37 PM
|
0
|
2
|
1277
|
POST
|
Hello Dan, Good to hear from you! Can you please elaborate your suggestion? If you meant to check the map_management help topic, I already did that. And I didnt find any option/parameter for defining the map description via python code. Basically I am trying to set the below fields via command line during mpk creation:
... View more
02-02-2017
07:29 PM
|
0
|
4
|
1277
|
POST
|
I recently started using arcpy to handle batch tasks for arcgis. I am trying to run the arcpy packagemap_management tool to batch export a bunch of mxds inside a folder. This is what I am running now: ----------------------------------- >>> import os import arcpy arcpy.env.overwriteOutput = True arcpy.env.workspace = "C:\ABC\DirectoryToMxd" for mxd in arcpy.ListFiles("*.mxd"): print ("Packaging: {0}".format(mxd)) arcpy.PackageMap_management(mxd, os.path.splitext(mxd)[0] + '.mpk', "PRESERVE", "CONVERT_ARCSDE", "#", "ALL") Packaging: Test.mxd Runtime error Traceback (most recent call last): File "<string>", line 9, in <module> File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 8197, in PackageMap raise e ExecuteError: #ERROR 001117: Map description property must be set Failed to execute (PackageMap). ------------------------------- From the error , it seems the code is working but due to the mandatory requirement for map description during mpk export ,it is throwing an error. I checked geonet doc and did not find any parameter to set "description". It only supports summary and tags through command line. Can someone please help me fix this? Is there a hidden parameter I can use to set the map description for all the exports?
... View more
02-02-2017
07:07 PM
|
0
|
6
|
2911
|
POST
|
Thank you Darren. This looks promising. I am away from my system at this moment. I'll give it a shot!
... View more
07-06-2016
01:33 PM
|
0
|
0
|
1080
|
POST
|
Yes. I am trying to find the sum of values for the fields for each row but only the fields that start with "FID_". About using excel , it only allows 256 columns. Still I exported it to csv and fulfilled my task. But this is just one of the tables out of several and it was getting cumbersome to manage for each tables. Hence I was hoping for a more efficient way to do it in-vivo Arcgis. I saw a number of posts about python expressions that can batch process such operations and was hoping if that is possible for my task as well. Thank you!
... View more
07-06-2016
12:20 PM
|
0
|
0
|
1080
|
POST
|
Sure. I apologize if I have not been clear in my explanation. The first screenshot showing the field GRIDCODE has a number of corresponding FID_XXXX. Each GRIDCODE has a row of data which holds FID_XXXX values which I need to summarize. for example in case of GRIDCODE=0 ,the new field TOTAL_AREA_OVERLAP will hold sum of all (FID_5194+FID_5203+.....) Since there are a large number of such columns and there is no fixed range for the FID_XXXX property I need to run a loop for summing the values in all columns starting with string FID_% for each row and populate that value inside TOTAL_AREA_OVERLAP. Summing is one of the operation I need. Similar to this I may also need mean, median etc as well. Hope this helps. Thank you.
... View more
07-06-2016
11:44 AM
|
0
|
2
|
1080
|
POST
|
I am fairly new to ArcGIS and GIS operations. I am trying to use field calculator to summarize a range of values having different FID_XXXX. For example I have a geo table with the following FID_XXXX with their corresponding GRIDCODE. Now I need to populate a new field ( for e.g AREA_OVERLAP) I added after the FID columns : I was wondering if someone can help me with a .cal expression to summarize or other operations for a batch of values tied to a certain row. I am somewhat familiar with Python but not accustomed to the ArcGIS environment. Thank you!
... View more
07-06-2016
11:14 AM
|
0
|
6
|
2891
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|