|
POST
|
As Dan suggests, a table join would achieve this. You could also use a search cursor to append matching values to an empty list and then use select by attribute on the FL. E.g. object_id_list = [1,2,3] query = "OBJECTID in (1,2,3)" Selectbyattribute(...
... View more
02-14-2020
07:56 AM
|
0
|
0
|
2906
|
|
POST
|
I think the mxd needs to be in the datastore as you're setting the workspace then using list layers I guess?
... View more
02-14-2020
07:27 AM
|
0
|
0
|
2583
|
|
POST
|
Is the mxd in the data store and the data referenced in the mxd through a full network path?
... View more
02-14-2020
07:17 AM
|
0
|
2
|
2583
|
|
POST
|
Other than setting the display to nearest neighbour I dont know. Would be good to find out if and when you solve it. Good luck!
... View more
02-13-2020
11:59 AM
|
0
|
0
|
2827
|
|
POST
|
Could be a DRA issue? Are they all set to the same symbology?
... View more
02-13-2020
10:11 AM
|
0
|
0
|
2827
|
|
POST
|
Hi Kathy. Date fields are python datetime objects which can be handy. Field 1 - Field 2 produces a TimeDelta object. TimeDelta.total_seconds() will produce the number of seconds of the timedelta object. I believe the timedelta will take into account leap years so the result may be off several days from what you may expect. Total_seconds = (TimeField1 - TimeField2).total_seconds() SecInYear = (60*60*24*365.25) Years = Total_seconds/SecInYear This is very basic and prone to error. Hopefully someone can give a better answer
... View more
02-10-2020
02:24 PM
|
2
|
0
|
2929
|
|
POST
|
# Import arcpy module
import arcpy
arcpy.env.workspace = r"C:\waterfowl\waterfowl\waterfowl.gdb"
arcpy.env.overwriteOutput = True
# Script arguments
Sitename = arcpy.GetParameterAsText(0)
if len(Sitename) == 0 :
Sitename = "Abgrabung Malsch/Durmersheim" # provide a default value if unspecified
Category = arcpy.GetParameterAsText(1)
if len(Category) == 0 :
Category = "Taucher" # provide a default value if unspecified
Specie = arcpy.GetParameterAsText(2)
if len(Specie) == 0 :
Specie = "Haubentaucher" # provide a default value if unspecified
Start_Month = arcpy.GetParameterAsText(3)
if len(Start_Month) == 0 :
Start_Month = "1" # provide a default value if unspecified
End_Month = arcpy.GetParameterAsText(4)
if len(End_Month) == 0 :
End_Month = "3" # provide a default value if unspecified
Start_Year = arcpy.GetParameterAsText(5)
if len(Start_Year) == 0 :
Start_Year = "1966" # provide a default value if unspecified
End_Year = arcpy.GetParameterAsText(6)
if len(End_Year) == 0 :
End_Year = "2007" # provide a default value if unspecified
QueryTable = arcpy.GetParameterAsText(7)
if len(QueryTable) == 0 :
QueryTable = "QueryTable" # provide a default value if unspecified
QueryTable_Statistics = arcpy.GetParameterAsText(8)
if len(QueryTable_Statistics) == 0 :
QueryTable_Statistics = r"C:\\waterfowl\\Scratch\\scratch.gdb\\QueryTable_Statistics1" # provide a default value if unspecified
# Local variables:
locationbirdinfo = "locationbirdinfo"
#False = "true"
#False__2_ = "true"
# Process: Make Query Table
arcpy.MakeQueryTable_management
("locationbirdinfo", QueryTable, "USE_KEY_FIELDS", "", "", "locationbirdinfo.locationinfo_wvz_zaehlgebiete_oag_karlsruhe_Sitename = " +
Sitename + " and locationbirdinfo.birdinformation_KAT_Bezeichnung = " +
"'" + Category + "'" + " and locationbirdinfo.birdinformation_ART_Bezeichnung = " +
"'" + Specie + "'" + " and locationbirdinfo.birdinformation_Month_ >= " +
Start Month + " and locationbirdinfo.birdinformation_Month_ <= " +
End Month + " and locationbirdinfo.birdinformation_DAT_Datum >= " +
Start Year + " and locationbirdinfo.birdinformation_DAT_Datum <= " +
End Year)
# Process: Summary Statistics
arcpy.Statistics_analysis(QueryTable, QueryTable_Statistics,
[[ "locationinfo_wvz_zaehlgebiete_oag_karlsruhe_Sitename", "MAX"],["birdinformation_KAT_Bezeichnung", "MAX"],
["birdinformation_ART_Bezeichnung", "MAX"],
["birdinformation_Month_", "MIN"],
["birdinformation_Month_" , "MAX"],
["birdinformation_DAT_Datum", "MIN"],
["birdinformation_DAT_Datum", "MAX"],
["birdinformation_DAT_Anzahl", "SUM"]], "")
... View more
02-09-2020
11:24 AM
|
1
|
1
|
4550
|
|
POST
|
Hi, I'm using portal with enterprise ed. 10.7.1. I've managed to create a working custom print service via publishing an 'export web map' gp task with the 'get layout templates info' task added to the service. The rest endpoint of the export web map task is then added to the standard print widget in the portal JS API web app builder. This has allowed the user to specify titles and authors etc in the widget window then export a graphic map. The template also contains a legend and scalebar. The scalebar works but will obviously come up with uncommon ranges at different scales, e.g. going up to 0.9 km instead of 1 km. Realistically I dont see any way around this but if anyone has ideas they would be well recieved. The legend works to a fashion but has a problem where if no items exist, it just takes up the whole page with a blank box.. I would love to know any ways to customize graphics on the template, e.g the user can click on a drop down list of HR, Accounting, Sales etc and their logos are added to the map. I know this can be done via a multitude of different templates but I want the user experience to be simple. If so, would this need to be done by creating a custom widget, using the dev WAB, or pure JS? Any other experiences and advice will be very well recieved. Thanks for your time!
... View more
02-08-2020
02:44 PM
|
1
|
1
|
1461
|
|
POST
|
I would consider something along the lines of creating a point at the centroid of the donuts then creating a line due north with length of the maximum buffer distance, or using the donuts geometry to decide. Create points at intersections of that line and the donut's edges then create a line between those points and grab the line length. Actually even better would be to clip that line to the buffer then take the shape length.
... View more
02-07-2020
03:55 PM
|
0
|
0
|
3316
|
|
POST
|
Jeremy, thanks very much for your time. I love the idea of comparing the geometries as opposed to a spatial join. With that in mind I can copy your script into my loop easily. Great idea.
... View more
02-07-2020
01:53 PM
|
0
|
0
|
1753
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-13-2025 01:08 PM | |
| 1 | 09-25-2025 03:19 PM | |
| 1 | 09-24-2025 02:35 PM | |
| 1 | 09-17-2025 02:42 PM | |
| 1 | 09-10-2025 02:35 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-14-2026
12:10 PM
|