POST
|
I've revised the code to be compatible with ArcGIS Pro, and to accept either a TIFF or ESRI grid as the elevation raster. The revised toolbox and user guidance are attached as a ZIP file.
... View more
09-09-2023
09:43 PM
|
1
|
0
|
994
|
POST
|
Perfect! Thank you. I'd been trying to use the params[5].enabled = False format from ToolValidator instead of parameters[5].enabled = False.
... View more
01-12-2023
05:12 AM
|
0
|
0
|
375
|
POST
|
I’m tasked with modifying an existing PYT toolbox…a format I’m not familiar with. I do have pretty good experience with non-PYT tools, and with configuring their ToolValidator code. What I’d like to do is modify the PYT so that it will open with one of the parameters in a disabled state, but I’m not sure if the code format is the same as in a ToolValidator class…like params[5].enabled = False…and I’m not sure where in the PYT to place that code. Can anyone offer advice, please? Thank you!
... View more
01-11-2023
07:41 PM
|
0
|
2
|
408
|
POST
|
I have used the start and end question types in the first of a set of 3 nested repeats to determine the length of a visit to an inspection site. I assumed that the start question would capture the time when the top-level repeat was opened/created, and that the end question would capture the time when either a new top-level repeat was created, or when the survey was submitted by pressing the check mark button at the lower-right. See XlsForms.jpg for a snippet of the XLSForm. However, the end time is the same as the start time when viewed in the underlying feature service in ArcGIS Online. See StartEnd.jpg. What am I missing? All insights are appreciated.
... View more
01-01-2023
07:32 PM
|
0
|
0
|
216
|
POST
|
OK, that makes sense forestknutsen1. Thanks. JeffK - Fields in the in_memory fc are cloned from the source fc via a field list, so I just modified construction of the field list to omit GlobalID, if it is present, as illustrated below. fieldList = [] fields = arcpy.ListFields(inSec) for field in fields: if field.type != "GlobalID": fieldList.append(field.name)
... View more
08-21-2022
09:07 PM
|
0
|
0
|
806
|
POST
|
Thanks for the replies, but I think my issue has been misinterpreted. Apologies if it was unclear. In this case, I'm not concerned with the transfer, or the values, of GlobalIDs. Rather, I'm trying to understand why my insert cursor does not work when the inserted record (I'm inserting an entire record, not just a value) contains a GlobalID field and the insert cursor's target is an in_memory feature class. The cursor works as expected if no GlobalID field is present.
... View more
08-15-2022
08:15 AM
|
0
|
1
|
833
|
POST
|
I'm using an arcpy insert cursor in ArcMap 7.1 to add features to an in_memory feature class, and this works fine except when the source feature class includes an indexed GlobalID field. The error I receive is "SystemError: error return without exception set". If I use FeatureClassToFeatureClass to convert the source FC to a new feature class, and drop the GlobalID field, the insert works fine again. The in_memory guidance warns that in_memory "does not support extended geodatabase elements such as subtypes, domains, representations, topologies, geometric networks, and network datasetsabout", but I don't see anything about GlobalIDs being an issue. Any insights would be appreciated.
... View more
08-10-2022
06:16 PM
|
0
|
7
|
920
|
POST
|
I'm using an arcpy insert cursor in ArcMap 7.1 to add features to an in_memory feature class, and this works fine except when the source feature class includes an indexed GlobalID field. The error I receive is "SystemError: error return without exception set". If I use FeatureClassToFeatureClass to convert the source FC to a new feature class, and drop the GlobalID field, the insert works fine again. The in_memory guidance warns that in_memory "does not support extended geodatabase elements such as subtypes, domains, representations, topologies, geometric networks, and network datasetsabout", but I don't see anything about GlobalIDs being an issue. Any insights would be appreciated.
... View more
08-07-2022
09:11 PM
|
0
|
0
|
211
|
POST
|
Here is code that constructs a line that is the “mean”, or “average”, of two similar lines. A typical use case is creating an average trail alignment from two GPS tracks of the same trail. Tool inputs are two feature classes that each contain a single polyline that is similar to the polyline in the companion feature class. For example, one feature class might contain the north-bound GPS track of a trail, while the second feature class contains the south-bound GPS track of the same trail. The feature classes can be of either .SHP or .GDB format, braided or unbraided, and with either a projected or GCS spatial reference. The finished mean line will be written into the first input’s workspace, and will have the first input’s spatial reference. See the illustrations below for examples of the result. The code (as a txt file) is also attached, and could be adapted to batch processing.
... View more
06-01-2022
08:43 AM
|
0
|
0
|
1613
|
POST
|
I've remedied my issue, guided by Ismael's question about the use of relevant expressions and his timely blog titled Survey123 Tricks of the Trade: hidden, relevant and body::esri:visible. Instead of my original use of a relevant expression for both the repeat and the geometry question, I revised to use a body::esri:visible expression for the repeat and a relevant expression for the geometry question. See the attached XLSForm excerpts that illustrate the remedy.
... View more
04-20-2022
08:46 PM
|
0
|
0
|
626
|
POST
|
OK, thank you. I certainly appreciate the enhanced drawing and annotation tools...but I do miss the option for camera, browse, and blank canvas sketch all within the same widget. Perhaps in the future... ;>)
... View more
04-18-2022
10:39 AM
|
0
|
0
|
480
|
POST
|
Thanks for the speedy reply. I've attached the XLSForms file for your reference. The relevant lines are 67 - 75. As you'll see, each of the 3 geometry widgets are made relevant by the user's choice in the SHAPE_TYPE question, but I didn't expect that would clear an existing geometry.
... View more
04-18-2022
10:30 AM
|
0
|
0
|
655
|
POST
|
It used to be that with an image-type question, appearance set to annotate, and body::esri:style set to method=camera,browse users could exercise 3 different options in the same image question: Take a photo with the camera Browse for a photo Hand-draw a sketch on a blank canvas This configuration doesn't seem to work anymore...all I can get is options 1 and 2. If I change appearance to draw, and keep the body::esri:style set to method=camera,browse, I can get the hand sketch, but I loose the camera and browse options. Is there a way I can restore the 3-way functionality to a single image question?
... View more
04-17-2022
09:55 PM
|
0
|
2
|
527
|
POST
|
Field users capture a point, line, or polygon feature as part of a site visit. But, if they re-open a site visit survey for edit from the Outbox, the geometry feature is not present. See the images below for an illustration of the situation. The OriginalDataEntry.jpg image illustrates the situation just before the user submits the site visit to the Outbox. In this example, a line feature has been captured. The EditFromOutbox.jpg image illustrates that the line feature is missing when that survey is re-opened for edit from the Outbox. Why aren't the geometries persisting when a submitted survey is opened for edit from the Outbox?? I'm using Version 3.14.242, and the geometries are captured as repeats nested within another repeat. The geometry widgets are exposed when users select a shape type in a prior question. begin repeat begin group . . . end group begin repeat geopoint end repeat begin repeat geotrace end repeat begin repeat geoshape end repeat . . . end repeat
... View more
04-17-2022
02:07 PM
|
0
|
3
|
928
|
POST
|
OK, thanks. Changing the begin repeat appearance to w1 field-list restored order to the universe.
... View more
12-18-2021
09:16 AM
|
1
|
0
|
376
|
Title | Kudos | Posted |
---|---|---|
1 | 09-09-2023 09:43 PM | |
1 | 12-18-2021 09:16 AM | |
1 | 12-15-2021 07:14 PM | |
1 | 05-14-2021 07:12 AM | |
1 | 03-13-2021 04:11 PM |
Online Status |
Offline
|
Date Last Visited |
09-11-2023
08:57 AM
|