IDEA
|
Hello, I would like to see an expansion of the available options for axis title labels in serial charts. As of now we seem to be limited to entering static text strings in as titles, but this can be limiting for charts that are dynamic based on a user selection. I have a dashboard that displays water quality data over time for many different locations. For any given location, there are up to 30 different tests that are catalogued, many of which use different scales (mg/L, ug/L, pH, etc.). These units are in the data table being charted as a field. In order for the chart to render, the user has to make a selection so that only one test type is rendered, so there should be a way to show the test unit on the axis through something like a dynamic text field, but no such option exists (as far as I can tell). I was able to implement a workaround that uses an indicator (because those support dynamic text) and grouped values to list the units above the chart as a title, but this isn't ideal. Please pardon the bad MS Paint screenshot.
... View more
a week ago
|
2
|
0
|
75
|
IDEA
|
Agreed, adding a little customizability to the hover text would go a long way to making charts simpler to understand. In a perfect world I'd like to see Arcade expressions added as an option here, but even adding the option to select an additional field to display would be a large improvement for those that have multiple values to chart like "Depth" in my case:
... View more
a week ago
|
0
|
0
|
45
|
POST
|
Ironically enough, that was the function I used at first when designing the script. I switched to the feature class to feature class option as an attempt to fix it. They both cause the same hanging problem. I can try it again tomorrow just to see if it somehow makes a difference with the hardcoded environment variables. I'll let you know when I get back to work tomorrow. Thanks for the help so far though, it's much appreciated.
... View more
11-13-2018
12:18 PM
|
0
|
0
|
114
|
POST
|
There isn't one: when run in the server environment it doesn't throw up errors, it just runs infinitely, chewing up RAM and doing nothing. I need to look into what Michael suggested and use error trapping, if I can figure out how that works.
... View more
11-13-2018
12:10 PM
|
0
|
2
|
695
|
POST
|
Good suggestion Jake, but hardcoding the file paths didn't solve the problem. I converted both entries to "\\\\server\\folder" and the result was unchanged. As for that syntax I used, it is supposed to be a variable that represents the directory where the script (the "_file_") sits on disk, allowing the script to be moved around on disk and still function.
... View more
11-13-2018
11:56 AM
|
0
|
4
|
695
|
POST
|
I'm relatively new at the language after having used it for a year, so I'm honestly not sure what you mean by error trapping. I could incorporate a try...except block on the problem area if that's what you are intending. Though I'm new at exception handling and the related syntax.
... View more
11-13-2018
10:27 AM
|
0
|
6
|
695
|
POST
|
Hi Jake, Thanks for the suggestion. I think I see where you're coming from, and here are snippets from my code related to what you mentioned: env.workspace = os.path.dirname(os.path.abspath(__file__)) workspace = os.path.dirname(os.path.abspath(__file__)) inFolder = workspace arcpy.CreateFolder_management(workspace,'fgdb') outLocation = workspace + "\\" + "fgdb" outGDB = "geonb_gcadb-bdavg.gdb" if arcpy.Exists(outLocation + "\\" + outGDB) == True: GDB = outLocation + "\\" + outGDB outLocation = str(GDB) elif arcpy.Exists(outLocation + "\\" + outGDB) == False: GDB = arcpy.CreateFileGDB_management(outLocation, outGDB) GDB = outLocation + "\\" + outGDB outLocation = str(GDB) db = outLocation As for whether that uses the UNC path I'm honestly not sure. Elsewhere in the script I refer to 'off drive' locations using notation like the below, and it reads and copies those locations just fine. The following code precedes my problem code and executes properly: zipOrig = '\\\\geoappcifs-test\\cifs-geoapp-test\\geonbdata\\CADB_update\\PLANETLOCN.zip' shutil.copy2(zipOrig,workspace) zip_folder = workspace + "\\" + "PLANETLOCN.zip" Hope that helps.
... View more
11-13-2018
10:17 AM
|
0
|
0
|
695
|
POST
|
I've been trying without success to transfer a functional script on my local drive to a shared server that my organization has read and write access to. The server is running ArcGIS Server 10.2.2, and my code is written in Python 2.7.10. I've noticed that the code hangs at a certain point, no errors or exceptions are thrown, the program just runs and chews up RAM until the process is cancelled. I let it run overnight and what should take under 20 seconds to complete still was not complete. My script's purpose is to update an existing feature class in an existing file geodatabase while creating several backups and zip files for export and storage elsewhere. The code gets hung up on the line where it is attempting to copy an XY layer into a feature class on a local drive it shares with the script. Code sample below (failure at bold face font): locations_Layer = db + "\\" + "locations_Layer" arcpy.MakeXYEventLayer_management(inFolder + "\\locations.txt", "X_COORDINATE", "Y_COORDINATE", locations_Layer, "PROJCS['NAD_1983_CSRS_New_Brunswick_Stereographic',GEOGCS['GCS_North_American_1983_CSRS',DATUM['D_North_American_1983_CSRS',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Double_Stereographic'],PARAMETER['False_Easting',2500000.0],PARAMETER['False_Northing',7500000.0],PARAMETER['Central_Meridian',-66.5],PARAMETER['Scale_Factor',0.999912],PARAMETER['Latitude_Of_Origin',46.5],UNIT['Meter',1.0]];-28216700 -23260100 10000;#;#;0.001;#;#;IsHighPrecision") print "Make xy event layer completed" arcpy.FeatureClassToFeatureClass_conversion (locations_Layer, db, 'civic_addresses') print "XY to FC conversion completed" This process works flawlessly on my machine when writing to local and shared drives, but when run from the server infrastructure the script fails to function at this point in the code. I can upload the whole script if necessary. Any guidance would be appreciated.
... View more
11-13-2018
09:22 AM
|
0
|
10
|
989
|
Title | Kudos | Posted |
---|---|---|
2 | a week ago |
Online Status |
Offline
|
Date Last Visited |
a week ago
|