POST
|
Have a map series with some Habitat Likelihood data over some property polygons. Have a table to display the acres and percentage of the total property acres. Have two properties that were acting oddly, one is a multipart that has a little notch in the the other one: So this table should only be the 099-804 property. I've clipped the habitat polygon (the yellow) so there is no overlap and the attributes have the separate numbers. I just dont know why this is still showing up, any ideas? Tried resetting the map series, setting page definitions and nothing seems to work. Is the Table Frame Query based on attributes or the extent of the map series feature?
... View more
01-21-2022
11:50 AM
|
0
|
1
|
285
|
POST
|
Sorry yes, mixed them up. Theywere on 2.9 and I was on 2.8 Both are the default environment settings No path names werent an issue because I was going in and resetting the path names because I was working locally to test, but they needed to connect over a network drive. So even then it was still freaking out I was doing most everything in memory until I had my final table that I then manipulated which I had set as a parameter so they could change it incase a workflow ever changed. Ultimately I had them downgrade to 2.8 and everything started to work a lot better. Im not sure if that is because there was a whole reset of the environment or it actually had something to do with the versioning. Its hard for me to understand why the version difference would cause such fundamental issues in the geoprocessing tools. I assume those dont get affected with each version change.
... View more
01-21-2022
11:41 AM
|
0
|
1
|
335
|
POST
|
Hello, So I'm trying to help a coworker out and create a model for them that will process some tables from GPS Collars into feature classes with some light data processing. It has been incredibly frustrating getting this to work because the model I create in my PC doesn't seem to function, basically at all, on their PC. The table will be entirely null, rows will be deleted, and there are random errors that appear on hers but do not appear on mine (000539 among others). Our versions are slightly different, I'm on 2.9 and they are on 2.10, but I would be shocked if these geoprocessing things have changed. Another oddity is on their instance of ArcGIS Pro when I go to select a field in Calculate Field it changes the name of the field by adding the name of the table before the name of the field. Say your table is called WA104_ExcelToTable and your field is called Collar_ID; when you go to select the field name in the list it will say Collar_ID but in the expression or code block it produces !WA104_ExcelToTable_Collar_ID!. Why is it doing this? I've tried it with two different models and the same thing is happening. Here is the simpler of the two:
... View more
01-19-2022
03:02 PM
|
0
|
3
|
390
|
POST
|
Hello, I have a model I've built that takes a polygon feature class converts it to points and the reverse geocodes to get a postal address. The issue is that the Reverse Geocode produces fields that act oddly with modelbuilder; I wanted to concatenate several fields to produce a single string address with all data. When I run the expression: " ".join([!REV_Street!, !REV_City!, !REV_Region!, !REV_Postal!]) It says that the field is invalid, but when run outside of modelbuilder as a single Calculate Field geoprocess it works. How can I get the model to function?
... View more
01-13-2022
04:59 PM
|
0
|
1
|
420
|
POST
|
Hello, I'm trying to make a model that will take in two multiple value parameter of dates to ultimately set rows within each pair to a specific status change. When I use inline substitution with a variable that has multiple values it provides the values as strings separated by a semicolon. in python a semicolon is used to write multiple statements on the same line so I can't assign each value that is input it's own variable. Anyone know of a way around this? I had really been hoping it would just be one big string because I can at least parse that.
... View more
12-20-2021
04:56 PM
|
0
|
0
|
296
|
POST
|
Just a regular old GDB, nothing fancy. I tried changing the variable to a string and then used: Start_Time <= date '%Last_Start_Date%' That seems to have worked, but think its a little odd I can't do that directly since its already in a date field.
... View more
12-16-2021
04:21 PM
|
0
|
0
|
262
|
POST
|
I'm upgrading a model that processes GPS Points. From the GPS device we can only get a table with every point, so I'm trying to create additional function that will go to the ultimate GDB and get the last date in the field "Start_Time" which is a date field. I achieve this by sorting by descending of this field and then "Get Field Value" from utilities into a date variable. Where I'm stuck is making the SQL expression using inline replacement to delete all the values that are lower than the variable I got from the server. However everything I've tried returns an error saying the expression is invalid. Expressions I've tried based off this article: Start_Time >= date %Last_Start_Date% "Start_Time" >= date %Last_Start_Date% Start_Time >= %Last_Start_Date% "Start_Time" >= %Last_Start_Date% Start_Time >= /'%Last_Start_Date%/' The value that the variable reports is: 2/12/2021 5:00:41 AM I don't really know what else to try. Its really hard to understand why it doesn't work when the error just says it doesn't work.
... View more
12-16-2021
03:39 PM
|
0
|
2
|
303
|
POST
|
Hello, I have a fairly detailed series of maps (~400 in total), its meant to be used with Avenza or another geoPDF app on a phone. So because of this I have a lot going on with the expectation that the user will be doing a lot of zooming in. They vary in scale some are very large (1:140000) and some are pretty small (1:24000) Some of the contents include from bottom to top: Other states boundaries for maps that are near the border Ownership from BLM, dissolved by the Property Status (USFS, BIA, etc) The main polygon of the map that the map series is based off of 10m Hillshade NHD hydrology, Waterbody, Areas, and Flowlines Admin Boundaries, Counties, etc Roads PLSS sections, townships, and ranges GNIS Places, Campground, Flats, Parks, Pop Places, Springs, Stations, Summits So there is a fairly good amount of data going on and its fairly complex too, everything loads fine and is responsive. The issue I'm having is that even on all the lowest settings (other than "Output as image" as I need the pdf to contain the georeference information) this pdf has been exporting for over 2 hours (and still isn't finished). Does anyone have suggestions on how to reduce that?
... View more
12-10-2021
03:56 PM
|
0
|
0
|
247
|
POST
|
@DanPatterson, Yeah I tried the "confirm restart kernel" and on the notebook it seemed like it stopped but the code was still selecting features after it was restarted.
... View more
11-22-2021
08:35 AM
|
0
|
0
|
6280
|
POST
|
Also gave this a shot, but it doesn't work. The process doesn't stop the loop.
... View more
11-19-2021
01:22 PM
|
0
|
2
|
6354
|
POST
|
I've tried everything I can think of to kill a running notebook that is stuck in a loop and nothing works. The Interrupt Kernel button is always grayed out, tried restarting the kernel through the command prompt (P Key) but this doesnt seem to do anything either. The only way I've figured out how to stop the process is to kill the entire application in task manager.
... View more
11-19-2021
12:47 PM
|
6
|
9
|
6381
|
POST
|
Figured it out if someone finds this later, Polygons need to be SHAPE@ and not SHAPE@XY.
... View more
11-17-2021
04:32 PM
|
1
|
0
|
678
|
POST
|
Hello, I've been struggling for two days trying to figure out how to insert a polygon object into a feature class. I've written the following code based off the Writing Geometries guide, unfortunately all of those examples are starting from scratch and I extracted my polygon objects from the .getExtents().polygon function in the camera class. This creates the row and adds the name but there arent any of the polygons. for name, poly in polyDict.items():
with arcpy.da.InsertCursor(gdb_fc, ['Name', 'SHAPE@XY']) as cursor:
cursor.insertRow([name, poly]) I've also tried adding an index to the poly variable to try the array but that doesn't work either. I'm obviously doing something wrong but have no idea as to what.
... View more
11-17-2021
03:51 PM
|
0
|
2
|
718
|
POST
|
E: after looking at it more i thought the copy features would insert a polygon object into the existing Feature Class not just completely overwrite it. Same result when it is in the same spot as my code, but works when I run it independently. But then when I run the rest of my code it goes away.. I'm not deleting anything, I have no idea why this is happeneing and its so frustrating. Here is all of my code for when I'm manually making the feature class: import arcpy p = arcpy.mp.ArcGISProject("G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.aprx") arcpy.env.addOutputsToMap = True gdb = "G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.gdb" fc = 'Map_Series_Extents' # arcpy.CreateFeatureclass_management(gdb, fc, "POLYGON", # has_m = "DISABLED", has_z = "DISABLED", # spatial_reference = "G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.gdb\\Divided_ControlledHunt_tobeMapped_2022") # arcpy.AddField_management("G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.gdb\\Map_Series_Extents", "Name", "TEXT") l = p.listLayouts()[2] if not l.mapSeries is None: ms = l.mapSeries if ms.enabled: for pageNum in range(1, ms.pageCount + 1): # Loop through the pages ms.currentPageNumber = pageNum # Get the Map Name pageName = ms.pageNameField # Get the Map Frame mf = l.listElements("mapframe_element", "Map Frame")[0] # Generate extent from the Map Frame extent = mf.camera.getExtent() polygon = extent.polygon # Insert the polygon into a feature class arcpy.CopyFeatures_management(polygon, gdb + '\\' + fc) # Add field to polygon with arcpy.da.UpdateCursor(gdb + '\\' + fc, ['Name']) as cursor: for row in cursor: if not row[0]: row[0] = pageName cursor.updateRow(row)
... View more
11-17-2021
01:19 PM
|
0
|
0
|
637
|
POST
|
Hello, writing a script to generate all the extents of a map series so they can be displayed in the extent map. Here is my relevant code: import arcpy p = arcpy.mp.ArcGISProject("G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.aprx") arcpy.env.addOutputsToMap = True gdb = "G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.gdb" fc = 'Map_Series_Extents' arcpy.CreateFeatureclass_management(gdb, fc, "POLYGON", has_m = "DISABLED", has_z = "DISABLED", spatial_reference = "G:\\Game_program\\Web_maps\\Controlled_Hunt\\Controlled_Hunt.gdb\\Divided_ControlledHunt_tobeMapped_2022") arcpy.management.AddField(fc, "Name", "TEXT") For whatever reason the field just stopped getting added and there are no errors that come up when I run the code. I know it worked at some point.
... View more
11-17-2021
11:58 AM
|
0
|
2
|
698
|
Title | Kudos | Posted |
---|---|---|
6 | 11-19-2021 12:47 PM | |
1 | 11-17-2021 04:32 PM | |
1 | 04-07-2020 11:19 AM |
Online Status |
Offline
|
Date Last Visited |
02-02-2022
06:27 PM
|