|
POST
|
This is perfect - thanks Randy. Working well so far. One more scenario I think I understand but want to check on: We will have 3 text elements at the bottom of the map that need to get updated with each run of the script. Thinking this could be tricky since the value will change. So if elm.text == "Text": obviously won't be "Text" after the initial run. I'm thinking with some wise use wildcards and consistency in the values that get written I can work with this?
... View more
10-23-2017
09:37 AM
|
0
|
3
|
4073
|
|
POST
|
Thanks James - I've looked at ListLayoutElements briefly. Experimenting just now, I can't seem to get it to work. I inserted a text element as a title in the layout (keeping 'Text' as the default value), then ran the following code: for elm in arcpy.mapping.ListLayoutElements(ownerMxd, "TEXT_ELEMENT"): if elm.text=="Text": elm = permitType permitType is a user-input variable (hard-coded for now while developing). No errors, but the resulting PDF still just shows 'Text' in the title text box. I'm sure I'm missing something obvious here. I am running a 'refresh active view' and 'save' command for the mxd.
... View more
10-20-2017
02:47 PM
|
0
|
1
|
4073
|
|
POST
|
Working on a big geoprocessing tool that generates a pdf map from an mxd using arcpy mapping. For every run of the tool, we need the title to change based on some user inputs. In addition, we have a feature class that gets truncated/appended during the script run. In the legend, we are displaying a 'Name' attribute for this particular feature class. The FC will always contain only 1 record, but we need the value in the legend to change to reflect the most current value in the FC. So basically I have 2 python/ArcMap layout questions - title taking user-input values and refreshing values in the legend (which are based on the symbology and values there). I've looked at dynamic text options, but these don't appear to have access to attribute-level values. Thanks - Allen
... View more
10-20-2017
01:37 PM
|
0
|
8
|
6102
|
|
POST
|
Trying to use the field calculator processor in a Geoevent service to look at an existing field and generate a Y/N value that gets written into a different column based on the values of the other field - I know VB doesn't work in the field calculator, so I'm wondering how to code the expression - basically it's this: IF field1 in ('AF','AM','AV','IH') then field2 = 'Y' else field2 = 'N' Can this be done in the simple field calculator processor? Hard to find documentation on coding these expressions. Thanks - Allen
... View more
10-05-2017
10:19 AM
|
0
|
1
|
1393
|
|
POST
|
I have what I think is a fairly straightforward scenario in GeoEvent processor - Points as input, going into a filter that uses two geofences, if a point is in GeoFence 1 or in GeoFence 2... The output feature class that gets written to has 2 attribute fields to accept the Name from GeoFence1 and GeoFence2 - fairly simple so far. So I have a GeoTagger processor to grab the Name field and map it to the appropriate attribute in the output feature class. All works well for a single Geofence, but what I am wondering is if you can have the GeoTagger create field names for both GeoFences, so that the geotagger definition has GeoFence1 AND GeoFence2 Category/Name in the output - something like this: Is it possible to get this done with a single GeoTagger? Thanks - Allen
... View more
09-29-2017
07:58 AM
|
2
|
0
|
935
|
|
POST
|
Hi Chris - We have just upgraded the Geoevent server in question, and the behavior seems better - no longer just dropping or refusing to generate GeoTagger definitions. It's a little bit clunky - for example if you modify the GeoTagger at all, you need to publish and start the GeoEvent Service (and make sure the input is started) in order for the changes to to reflect in the Definition, but this is not a huge deal. Now I just need to figure out why the GeoFence name is not making it into the specified field in the Output feature class... Thanks - Allen
... View more
09-27-2017
02:28 PM
|
0
|
0
|
1018
|
|
POST
|
Having a really hard time working with some GeoTaggers in GEP (v. 10.5). The generated definitions from the GeoTagger take a while to become accessible (via a field mapper, for example), sometimes never appear, and sometimes disappear (usually after making an edit to the GE Service). I found this thread, which describes very similar behavior but for 10.3.1 version of GEP: https://community.esri.com/message/525325?q=GeoTagger This issue is only for GeoTagger-generated definitions, any other system- or user-generated/owned definitions seem to be fine and reliably available. We are going to significantly bump up the CPU/RAM on the hosting server (it's Virtual, with 1 core and 8GB currently but doesn't have huge amounts services with huge amounts of data running - yet), as it is under-powered currently, so I cannot rule that out as the culprit here but wanted to see if this issue has cropped up for anyone working in 10.5 GEP. Thanks - Allen
... View more
09-13-2017
10:13 AM
|
0
|
2
|
1266
|
|
POST
|
Figured this out with a little help from ESRI - here's the syntax used in the python script the says what the output path of generated pdf's will be: os.path.join(arcpy.env.scratchFolder + r"\filename.pdf") When the script is published as a geoprocessing service, a url is generated that successfully opens the pdf for printing/download. Thanks all for the input.
... View more
09-01-2017
12:52 PM
|
4
|
1
|
3551
|
|
POST
|
We have added a large 😧 drive to the virtual server where our primary Portal site is installed. We also have ArcServer installed here (federated) and datastore for hosting capability (all Enterprise 10.5) We need to move the datastore to this 😧 drive (from the C: drive on the same machine) as we are rapidly running out of space. Yes, in hindsight this should have been done at initial install. Lessons learned... I wanted to confirm that the steps to do this are essentially the same as those listed here, for moving the Datastore from 1 machine to another: Move a relational or tile cache data store—Portal for ArcGIS (10.5.x) | ArcGIS Enterprise It seems like it would be quite similar, but hoping to get confirmation before we map out an execute the move. Thanks - Allen
... View more
09-01-2017
12:46 PM
|
1
|
15
|
11566
|
|
POST
|
Thanks! Found it in the AGS jobs directory - now I have something to work with. Hadn't thought to look in those directories.
... View more
08-29-2017
02:45 PM
|
0
|
0
|
3551
|
|
POST
|
Thanks Clinton and Rebecca - I do get a link similar to what Clinton describes - however clicking it gives an Invalid URL 400 message. I believe the reason is related to the fact that the script has a little wrinkle in it, in that it loops through and generates 2 output pdfs, with the names being passed into the label-generation function in python. The link that does get generated is the generic one configured in the published version of the script, so it doesn't appear to be getting either of the names that it should be from the script variables.
... View more
08-29-2017
01:13 PM
|
0
|
3
|
3551
|
|
POST
|
We have created a geoprocessing service that uses a modified version the Reportlab pdf generation from the ESRI Public Notification app. The script takes an address or parcel, buffers it, generates 1 pdf for property owners in the buffer area, and a 2nd pdf for the Neighborhood Associations officers for the NHA where the parcel is. The script runs as desired, and generates the output pdf's in the scratch directory on the ArcServer machine (C:\users\username\documents\ArcGIS\Scratch). My issue is that when creating a web app with a Geoprocessing Widget that uses the script published as a service, I don't know where the output goes. It runs successfully, but the output remains out of reach. The Public Notification application opens a new browser tab with the PDF mailing label output - I would like to have the same behavior with my custom script but am not sure how to set this up. The output_file variable is actually part of a list so that the script can loop through to generate the owner and NHA pdf's as separate files, but it is currently coded as follows: labellst = [[arcpy.GetParameterAsText(5).replace("\\",os.sep)+"owners.pdf","parc"], [arcpy.GetParameterAsText(5).replace("\\",os.sep)+"nha.pdf","neigh"]] The script has the output file as a derived 'output' parameter of type 'file'. Thanks - Allen
... View more
08-25-2017
01:14 PM
|
0
|
8
|
5179
|
|
POST
|
Working in AGOL WAB with the query widget - excellent tool. However we're working on having 1 relatively large query available for users, so I'm wondering if you can have more than 1 spatial filter configured per query with the OTB version of this widget. For example look at properties that are (sp. filter 1) within X distance of a railroad line and (sp. filter 2) with Commercial zoned areas. I understand there are work arounds, but we want this to be REALLY simple for the user - not having to turn on any layers or anything, or run multiple queries. Thanks - Allen
... View more
07-21-2017
04:00 PM
|
0
|
0
|
819
|
|
POST
|
My mistake - I was focused on the Filter/Processor and Output side of things, but of course you can set the time (albeit in seconds) that the input waits between turns polling the input FC service for features, which should work for us in this case. That is what triggers the emails being sent as far as timing goes.
... View more
07-12-2017
04:17 PM
|
0
|
0
|
704
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-07-2016 02:59 PM | |
| 1 | 09-04-2015 03:52 PM | |
| 1 | 08-31-2015 02:24 PM | |
| 2 | 08-13-2019 04:21 PM | |
| 1 | 09-12-2019 01:30 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|