IDEA
|
Here are some steps to reproduce the issue: - Set symbology in a map service - add to web map (change nothing) - Open web map in collector Expected: symbols look just like they do in the map service or in the web map Reality: symbols are hard to see in Collector (iPad, latest versions of OS and collector as of this post date)
... View more
11-26-2018
11:11 AM
|
0
|
0
|
1991
|
IDEA
|
I republished a map service to update the symbology and it did not update int he web map. I found this article https://support.esri.com/en/technical-article/000014102 that suggests I remove the layers and re-add them. However, I never changed the symbology configuration to begin with. This workaround is unacceptable since I would be re-doing ALL of my work to configure the web map. I set the configuration of the pop-ups and I set custom labels (since the ones I created prior to publishing my AGS service did not appear on the web map... They were custom expressions and included a "newline" which is also unsupported in Arcade). When I created the labels, AGOL automatically stored symbology information in the web map JSON (I found this out through ago-assistant). Thus, AGOL thinks I applied custom symbology to the layers when I did not. So when I republish the map service, the symbology does not update (see article above). This is causing an issue since I have to redo all this configuration every time I want to update the symbology of the map service and have that show through my web map. I would like to log an enhancement request to only store symbology information in the JSON if I actually update the symbology through the tools in AGOL (not when I add labels). At the very least update the article above...
... View more
06-29-2018
12:25 PM
|
2
|
0
|
753
|
POST
|
I figured out an easy fix: I create an array of the broken layers, then check to see if the layers in the MXD are in that array. I instruct my output to write a "yes" or "No" to determine if the layer is broken. #Import necessary librariesimport arcpy, os, fnmatch, csv #Create an empty list of ArcMap documents to process. mxd_list=[r"\\...\XYZ.mxd","//computer/d$/ABC.mxd"]#Initiate a for loop to run through each MXD in the listfor mxd in mxd_list: #Define the MXD mxd = arcpy.mapping.MapDocument(mxd) #Get the file path from the MXD mapPath = mxd.filePath #Get the name of the MXD from the full path fileName = os.path.basename(mapPath) #Get a list of all layers in the given MXD layers = arcpy.mapping.ListLayers(mxd) #Define the output file path. Here the file is being saved to the desktop with the same name as the MXD. Change the file path to an accessible location. filepath = "C:/Users/USERNAME/Desktop/"+ fileName[:-4]+".csv" #Define the file to be written as a CSV. writer = csv.writer(file(filepath, 'wb')) #Identify all broken layers in the MXD brknList = arcpy.mapping.ListBrokenDataSources(mxd) #Initiate a for loop to run through each layer within the MXD for layer in layers: #Check to see if the layer supports the attribute "dataSource". Not all layers support this stored metadata value. if layer.supports("dataSource"): #Determine if the layer is broken or not by comparing it to the list of broken layers if layer in brknList: broken = "Yes" else: broken = "No" #Compile a list of layer attributes. This list can be modified based on the defined properties of the layer class in arcpy (http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm). layerattributes = [layer.longName, layer.dataSource, broken] #Write the attributes to the csv file. writer.writerow(layerattributes) #Delete variables that will be recycled in the loop del writer
... View more
06-28-2018
02:00 PM
|
1
|
0
|
2995
|
POST
|
I have a script that lists all layers in an MXD and I have a script that lists all broken layers in an MXD. I want to list all layers, their name, source, description, and whether or not their source is broken. Can anyone help me with this? import arcpy, os, fnmatch, csv
#Create an empty list of ArcMap documents to process...
mxd_list=["A.mxd", "B.mxd", "C.mxd"]
for mxd in mxd_list:
mxd = arcpy.mapping.MapDocument(mxd)
mapPath = mxd.filePath
fileName = os.path.basename(mapPath)
layers = arcpy.mapping.ListLayers(mxd)
filepath = "C:/Users/USERNAME/Desktop/"+ fileName[:-4]+".csv"
writer = csv.writer(file(filepath, 'wb'))
sourcelist = []
for layer in layers:
if layer.supports("dataSource"):
layerattributes = [layer.longName, layer.dataSource]
#Write the attributes to the csv file...
writer.writerow(layerattributes)
writer.writerow(sourcelist)
del writer
... View more
06-27-2018
12:39 PM
|
0
|
4
|
5717
|
POST
|
I am trying to join an Oracle table to a feature class but have not found success yet... Here is my code: # Import arcpy moduleimport arcpyfrom arcpy import env #Set Variables parent = "Database Connections\\db.sde\\db.DBO.layer"child = "Database Connections\\db.sde\\db.DBO.layer2"codeList = ['SC21', 'SC22', 'SC23', 'SC24', 'SC25', 'SC26', '2C27', 'SC28', 'SC29', 'SC30', 'SC31', 'SC33', 'SC34', 'SC35', 'SC36', 'SC37']parentView = "layer"tableView = "connectionFees"table = "Database Connections/oracle.sde/oracleDB.oracleTable"if arcpy.Exists(child): arcpy.Delete_management(child, "FeatureClass")#Make a feature layer in order to perform a selectionarcpy.MakeFeatureLayer_management(parent, parentView)#Select all features that match the codes from the code listfor code in codeList: arcpy.SelectLayerByAttribute_management(parentView, "ADD_TO_SELECTION", "Code = '"+ code+"'")#Copy the selected featuresarcpy.CopyFeatures_management(parentView, child)#Make Query Layer of Oracle table since it does not contain an incrementing ID field arcpy.MakeQueryLayer_management("Database Connections/db.sde", tableView, "SELECT \n field1,\n field2,\n field3,\n SUM (amount) total\n FROM layer\nGROUP BY field1\n", "field1", "", "", "") #Join the gdb layer to the Connection Fees Table from oracle DB arcpy.JoinField_management(child, "field1", tableView, "field2") I get a generic 999999 error.. Any thoughts?
... View more
02-22-2018
12:08 PM
|
0
|
1
|
878
|
IDEA
|
I would like the ability to create composite layers in arcgis online based on other items in my arcgis online content. For example, I would like to create a layer that includes specific fields from separate tables as well as a spatial layer in my content. Essentially, I want to mimic spatial views or query layers, but based on hosted items in my content (that may be part of separate services).
... View more
01-11-2018
10:42 AM
|
4
|
1
|
997
|
POST
|
I have consulted the post above, but found that the solution is out of date and no longer works. import arcpy, os workspace = r'C:/Users/OWNER/Desktop/test.gdb'# Generate the list of relationship classesrc_list = [c.name for c in arcpy.Describe(workspace).children if c.datatype == "RelationshipClass"]print rc_list This returned "[]" which is an empty array. This means this is no longer a viable option since I have literally 150 relationship classes to rename and none were returned. Eventually I want to rename my relationship classes as such: import arcpy, osfrom arcpy import env # Set workspaceenv.workspace = "C:/Users/XXX/Desktop/test.gdb" #get list of relationship classesrc_list = [c.name for c in arcpy.Describe(env.workspace).children if c.datatype == "RelationshipClass"] #remove all underscoresfor rc in rc_list: out_data = rc.replace("_","") arcpy.Rename_management(os.path.join(env.workspace,rc), out_data)#get the list of relationship classes againrc_list = [c.name for c in arcpy.Describe(env.workspace).children if c.datatype == "RelationshipClass"] for rc in rc_list: # if "reading" in rc OR "action" in rc: #add underscores between name and ATTACHREL if "ATTACH" in rc: out_data = rc.replace("ATTACHREL","TblGPS__ATTACHREL") arcpy.Rename_management(os.path.join(env.workspace,rc), out_data) print (rc) #add underscores between name and rel if "rel" in rc: out_data = rc.replace("rel","TblGPS__rel") arcpy.Rename_management(os.path.join(env.workspace,rc), out_data) print (rc) else: #add underscores between name and ATTACHREL if "ATTACH" in rc: out_data = rc.replace("ATTACHREL","PtGPS__ATTACHREL") arcpy.Rename_management(os.path.join(env.workspace,rc), out_data) print (rc) #add underscores between name and rel if "rel" in rc: out_data = rc.replace("rel","PtGPS__rel") arcpy.Rename_management(os.path.join(env.workspace,rc), out_data) print (rc) How can I extract the relationship classes from the geodatabase so I can rename them in bulk? I have them in a file geodatabase right now but eventually I will have them in SDE.
... View more
12-20-2017
04:15 PM
|
0
|
1
|
3671
|
IDEA
|
With a little GIS, you could take your data into ArcMap/Pro and analyze it. You could probably even do this in ArcGIS Online..
... View more
08-17-2017
03:22 PM
|
0
|
0
|
2047
|
BLOG
|
https://community.esri.com/blog/doc.arcgis.com/en/survey123/desktop/create-surveys/whatsnewsurvey123.htm This link is broken?
... View more
08-17-2017
02:56 PM
|
0
|
0
|
1955
|
IDEA
|
I think you can add the title during SM creation then go into AGOL and change the item name. That should give you what you want. Although, I agree it is not ideal to be forced into having both the same from the get-go.
... View more
06-30-2017
12:57 PM
|
0
|
0
|
809
|
IDEA
|
I think you can add the title during SM creation then go into AGOL and change the item name. That should give you what you want. Although, I agree it is not ideal to be forced into having both the same from the get-go.
... View more
06-30-2017
12:57 PM
|
0
|
0
|
573
|
IDEA
|
Is there a way I can see if a web map has been checked out? E.G. Someone downloads a map onto their device using Collector, but I need to recreate the web map in ArcGIS Online because the data has been corrupted. Is there a way to see if the web map has been downloaded and is currently un-synced? Can I see who downloaded it and on what type of devices? I know there is a way to see if the data has been checked out, but I want this capability for web maps.
... View more
04-13-2017
01:39 PM
|
4
|
0
|
575
|
Title | Kudos | Posted |
---|---|---|
1 | 06-28-2018 02:00 PM | |
1 | 08-17-2017 04:28 PM | |
14 | 10-20-2016 01:55 PM | |
5 | 10-20-2016 01:14 PM | |
2 | 06-29-2018 12:25 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|