|
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
|
5177
|
|
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
|
1543
|
|
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
|
3531
|
|
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
|
1856
|
|
POST
|
Hi, you could make a copy of the boundary file and use the 'cut' tool on the editor toolbar to only get the boundary you want. If this line is made up of lots of features you may have to select them all then 'merge' on the same toolbar. After this, select your boundary line and search for 'buffer' the documentation of this tool explains it far better than I could. To adjust the ends of your resultant feature, you may wish to use the editing toolbar to shape them as required.
... View more
02-07-2020
12:55 PM
|
1
|
1
|
9679
|
|
POST
|
Hello. I'm on arcgis desktop 10.5.1 using python 2.7. I've got a very simple spatial join in my script but I cant get my head around the field mapping object. I'd like to join two identically overlapping features (polylines) which have the same schema but different attributes. The only field I care about keeping in the join is an 'ID' string field. I'd like to keep both ID entries as a delimited list in the output layer. E.g Input of coincident features from 2 layers. OBJECTID | ID | 1 | 5 | 89 | 9 | Desired output OBJECTID | ID | 1 | 5, 9 | The field mapping examples give me a headache. Thanks for looking.
... View more
02-07-2020
11:30 AM
|
0
|
2
|
1942
|
|
POST
|
The custom print service may only be for Portal? It is ArcGIS server documentation.
... View more
02-05-2020
12:18 PM
|
1
|
1
|
6213
|
|
POST
|
I would have thought that you create the match table each time to reference your parcel id
... View more
02-05-2020
10:35 AM
|
0
|
0
|
3668
|
|
POST
|
The dataframe can absolutely be set unfortunately the layout properties to go with it can only be set through arcobjects.
... View more
02-04-2020
03:43 PM
|
0
|
0
|
1282
|
|
POST
|
I would buffer to the envelope of your parcel then use simple trig to construct lines to split that envelope and then clip you parcel to the split envelope.
... View more
02-04-2020
03:09 PM
|
1
|
0
|
1395
|
|
POST
|
Look at the arcpy.Polygon object. Can easily pass an array into it to create your polygons.
... View more
02-04-2020
03:05 PM
|
1
|
0
|
1017
|
|
POST
|
I'm straying out of my comfort zone, but I would think you specify the match table in your tool, I.e a tool parameter would be the parcel ID then your attachment path.
... View more
02-04-2020
01:56 PM
|
0
|
2
|
3668
|
|
POST
|
Oh cool. If your gdb is in your data store you should be able to write straight into it. The gp service you create should have 'allow uploads ticked' which should allow you to specify the path from your phone. This is from a portal perspective unfortunately tho.
... View more
02-04-2020
01:27 PM
|
0
|
2
|
3668
|
|
POST
|
Hi, If you right-click on your table in your Table of Contents and select 'edit features' -> start editing. if you now right-click and open up the 'attribute table' you will see your records. scroll to the bottom of this table and there will be a blank row in which you can double-click and insert your data. be aware this will not take on any location at this point. if you are adding this as xy data you may be best to edit the table outside of arcmap and import as xy data.
... View more
02-04-2020
11:41 AM
|
1
|
1
|
1307
|
| 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 |
a week ago
|