|
POST
|
Hi, I was wondering if the current library of python modules that is included with ArcGIS Pro includes the module FloPy? If it doesn't, is that is something that can be requested for future instances or will that module have to be individually installed? I am looking to utilize it for run some complex analysis for stormwater. I know USGS uses it but I wasn't sure if it is something that is automatically included with Pro.
... View more
08-24-2022
10:37 AM
|
0
|
4
|
2412
|
|
POST
|
That's what I'm working on. I'm rewriting that part of my script to remove and update the attachments. The script is complicated in such that it exports pdfs from a map series and then sets those as attachments.
... View more
08-20-2022
12:07 PM
|
0
|
0
|
1484
|
|
POST
|
Hi, I have a simple yet general question. I have a script that adds attachments to a related table. However, whenever I script to renew the attachments(remove and add attachments), it seems that they don't attach to the correct records. My question is, would it be better to write my script to recreate the table to then remove attachments or would the truncate option work as well? I am trying to configure my code to so that the attachments (in the future) are are kept up to date and account for any additional changes.
... View more
08-19-2022
10:16 AM
|
0
|
2
|
1512
|
|
POST
|
Well that worked. I don't know why the file explorer method didn't work but I guess this is a specific file structure that is unique to ArcGIS which probably explains why it didn't recognize it. Thanks @Anonymous User.
... View more
08-18-2022
12:08 PM
|
0
|
0
|
1852
|
|
POST
|
Hi, I ran a few tests to see if a table exists in geodatabase. For some reason the script returns false despite having a proper path and everything. All other features can be accounted for but I don't know why this path is not returning. import os
import arcpy
Table = # Insert table path
workspace = # Insert workspace path
if os.path.exists(Table):
print ('{} exist'.format(Table))
else:
print ('{} does not exist'.format(Table))
walk = arcpy.da.Walk(workspace, 'Table')
for root, directory, filenames in walk:
for file in filenames:
print (file)
path = os.path.join(root, file)
print (os.path.exists(path)) There is an actual path to the table but for some reason it doesn't seem to appear. The table also has attachments enabled but I don't know if this impacts whether or not the file exists. Here is the print result that I get. C:\**\OverflowReportAtt does not exist
OverflowReportAtt
False
OverflowReportAtt__ATTACH
False
OverflowReportAtt__ATTACHREL
False I would greatly appreciate any help on this. If this is a bug, then I will report as such.
... View more
08-18-2022
07:22 AM
|
0
|
2
|
1886
|
|
POST
|
Here are some options that may help. You may need to compare each unique value to see if there are truly any duplicates to a list of all of those values. import arcpy
fc = r'C:\Temp\test.shp'
# Option A
fields = ['PN', 'ACT', 'ACRES']
# if need just two field use ['OID@','PN', 'ACT']
search = arcpy.da.SearchCursor(fc, fields)
update = arcpy.da.UpdateCursor(fc, fields)
values = [row for row in search]
values = set(tuple(i) for i in values)
i = 0
with update as cursor:
for row in cursor:
if row in values:
i += 1
if i >= 2:
cursor.deleteRow()
del cursor
#Option B
fields = ['OID@', 'PN', 'ACT', 'ACRES']
# if need just two field use ['OID@','PN', 'ACT']
search = arcpy.da.SearchCursor(fc, fields)
values = {row[0]: row[1:] for row in search}
setvalues = set(tuple(row[1:]) for row in search)
fields = ['OID@']
update = arcpy.da.UpdateCursor(fc, fields)
i = 0
with update as cursor:
for row in cursor:
if values[row[0]] in setvalues:
i += 1
if i >= 2:
cursor.deleteRow(row)
del cursor I didn't see anything wrong with your code. It could also be that the values are truly unique, which is why it is difficult to see if there are any true duplicates. Another thing you can do is create a list of each value and then convert the same list to a new set. If the length for each set of values is the same length as the overall length of values, then that might determine whether your values are truly unique or not. Just another suggestion.
... View more
08-18-2022
06:51 AM
|
0
|
0
|
1549
|
|
POST
|
Hi, I was wondering if anyone knows if the GeoEvent Server has the ability to consume secured rest endpoints or services. I know that it has the ability to consume services from SCADA, but I do not know if those are secured services or not. Any help on this would be greatly appreciated.
... View more
08-15-2022
07:51 AM
|
0
|
1
|
1224
|
|
POST
|
Thank you very much @jcarlson. We are looking to acquire the Notebook Server so we can create custom tools and store and run all of our scripts on one server rather than having multiple scripts run on multiple machines/servers. That was one of my main concerns since one of my project includes that module. The other concern is whether or not if the Notebook Server has the ability to run scripts that output to different folder locations. I have run into that issue regarding windows task scheduler, and I am hoping the notebook server may be able to circumvent that. Also, in terms of installing a module, does it have to be installed every time or just the one time?
... View more
08-11-2022
11:00 AM
|
0
|
0
|
1767
|
|
POST
|
Hi, I was wondering if the notebook server pandas module includes the xlsxwriter module or if it can be installed on the server? I have a fairly complex setup that includes this module so I wanted to check and see if that is also included.
... View more
08-11-2022
08:28 AM
|
0
|
2
|
1844
|
|
IDEA
|
Hi, I was making a few changes to a map that was requested by an internal customer, I realized that the filter option for the map viewer is still limited to only specifying fields. Having the ability to filter using an Arcade Expression would make it to where filtering data, especially when it comes to using date fields, would allow for more dynamically tailored maps. I don't know if there are plans to implement this or not but I just thought to share.
... View more
08-10-2022
07:32 AM
|
6
|
0
|
824
|
|
POST
|
You can symbolize points based on multiple attributes by selecting unique values, depending on what they are, and modify the point symbology to have different symbols based on the values. You can then modify the symbology settings (far right tab in the symbology tab) where you can basically add various layers to the symbol and modify each layer based on what you want to symbolize for each attribute.
... View more
07-08-2022
06:56 PM
|
0
|
0
|
2777
|
|
POST
|
If you are wanting to go the script route then this sounds like what you need to: create a separate line feature class (inserting whatever necessary fields) loop through your split_line feature class using a search cursor and use the insert cursor to append the line with the specified distance to the created line feature class and using the attributes as parameters for the tool use the generate points along line tool on the newly appended feature class with the attributes from the search cursor append the generated point feature class to your main point feature class (either using the append tool or another search and insert cursor)
... View more
07-08-2022
02:37 PM
|
0
|
0
|
1434
|
|
POST
|
Hi @AndrewKan, There isn't any functionality for arcade to create a feature. If you are looking to create features for based on new inputs from the field, then the only way to do so would be to create a separate python script. You can then schedule a script to run via bat file and have windows task scheduler run it on a schedule. That is the only way, as far as I know, that would work for what you are trying to achieve.
... View more
07-08-2022
11:55 AM
|
0
|
1
|
2856
|
|
POST
|
HI @GISLearner, You don't need to script anything in order to run the tool. Unless you are looking to specifically generate points along certain lines, then you would simply need to create a separate feature class only for those lines. Also, something to note, the way you have it scripted is incorrect. You cannot use record as an input for a tool. Tools are built in such a way that they will only take specific kinds of inputs (i.e. a feature class or layer). What you are trying to use the tool for isn't working because it isn't configured properly for the tool to run. You would need to use the split_line as the input. For examply: with arcpy.da.SearchCursor(split_line, ['ORIG_SEQ','PointDist', 'SHAPE@']) as split:
for segment in split:
pointDistance = str(segment[1]) + " Miles"
arcpy.management.GeneratePointsAlongLines(split_line, pointsAdded,
"DISTANCE", pointDistance, None, "END_POINTS")
arcpy.management.Append(pointsAdded, allPoints) I am still not following for certain parts of your script, but if you are looking to only include certain points as they pertain to certain lines, then you can create a script similar to the one you started with for the point feature class created by the tool. You would then append those points to another feature class based on what parameters you set. Click here for help on with the tool that you are trying to use.
... View more
07-08-2022
11:38 AM
|
0
|
1
|
1473
|
|
POST
|
Hi, I have encountered an issue that I have never encountered before when using bat files. I have several scripts that I run using bat files and windows task scheduler without issues. For some reason, this particular script that I wrote runs perfectly fine from the bat file or as is, but it returns a particular error and it is something that is causing a lot of headache for me to troubleshoot. I would greatly appreciate any suggestions that would help remedy this issue?
... View more
07-06-2022
05:35 AM
|
0
|
1
|
1617
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | 05-07-2026 01:36 PM | |
| 1 | 02-10-2026 06:09 AM | |
| 1 | 03-04-2026 01:08 PM | |
| 1 | 02-24-2026 12:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|