|
POST
|
Looks like Model 4 did not validate. That probably indicates an error in Model 4. I'm guessing the OUTPUT LAYER parameter from Iterate Layers in Model 4 should not be used as input into the Feature Class To Shapefile tool. Rather the output of the Select Layer By Location tool should feed the Feature Class to Shapefile tool in Model 4. Something like this: Also, I agree with @RhettZufelt. I don't see why two models are necessary. You can add the attributes to the shapefiles as they are created, but if you do want to create the shapefiles first and add the fields later you will need 2 models (since their is a limit of one iterator per model as you know).... To use two model try making Model 4 a precondition of Model 3.
... View more
05-11-2022
07:03 AM
|
1
|
3
|
4188
|
|
POST
|
In the original post you mention "Now I'm trying to register the feature dataset as versioned and I'm encountering the attached error", but I don't see the attachment containing the error message.
... View more
05-11-2022
05:38 AM
|
0
|
0
|
1064
|
|
POST
|
I have a model that will create a feature class containing one point for each polygon containing just the Maximum Area and the habitat for that area. You should then be able to join this to your polygons using the polygons unique ID which is also an attribute of each point. Please keep in mind I tested this in ArcMap 10.8.1 so not 10.3 My test data has different field names and only contains 2 polygons and 13 points. Here are snapshot of the starting tables. MaxTestPoints: PolygonTest Using these two I did a spatial joint using points as the target to move the MyTestValue into the points. The result I called MaxTestPoints_SpatialJoin2 Then I created a model that pulls just one point for each polygon from this feature class and appends it into a new feature class I called "MaxTestPointsFinal". Each point in MaxTestPointsFinal is the point representing the Maximum value for a MyTestValue polygon.... confusing I know, but when you see the output below I think it will make more sense. The model is pretty simple. The top image is just the model. The images that follow that show important details about the steps: Iterator on polygon layer, value is the unique ID of the polygon Select by attribute (gets all records that share max value) Select by Attribute (with Remove_From_Selection option) to exclude all points that do not fall within the polygon being considered. The append step just appends the identified point to a feature class of all Max value points. There might be a MUCH easier way, but given the constraints of file GDB in ArcMap 10.3 I sure couldn't think of it. Hope this helps. K
... View more
05-10-2022
11:06 AM
|
1
|
3
|
2412
|
|
POST
|
Hmmmm.... finding Max in a file geodatabase seems harder than it should be. Database views are not supported in File GDBs and subqueries on file and personal geodatabases don't seem to support GROUP BY and Summarize cannot tell you which habitat has the Max Area. I am seeing your problem. Looks like Model Builder might be the answer if this is a process you have to repeat frequently. Is this a one time process or will you have to repeat it often?
... View more
05-09-2022
02:40 PM
|
0
|
1
|
2446
|
|
POST
|
Sorry, just getting back....Quick questions. Is your data in a file geodatabase or an Enterprise GDB (I.E. SQL Server, Post GRE, Oracle, etc.)?
... View more
05-09-2022
10:44 AM
|
0
|
1
|
2454
|
|
POST
|
I don't have 10.3 to test against, but if you spatial join the points with the polygons to move the cell IDs to the points first (points are the target). Then use a database of query to select the point within each cell that has the highest value for Area (Max query). Then export those points to a new feature class, and then run the spatial join with the GridCells as the target against just the Max value points. This might work without python or a model builder model
... View more
05-09-2022
04:05 AM
|
1
|
1
|
2503
|
|
POST
|
Is the second computer set up exactly like the first in terms of ArcMap version and extensions installed, .NET version, required run times, SQL drivers, etc.? You might also check that your using the same database permissions between the two test environments.
... View more
05-09-2022
03:46 AM
|
0
|
0
|
821
|
|
POST
|
If I am understanding your diagrams correctly it seems like multiple samples link to one borehole and that each sample already has its formation information associated with it. In this case I would load both the sample and borehole tables into ArcGIS (don't use the feature class you created, just the original tables) and, starting from the sample table, create a join to the borehole table using BoreholeName as the common key. Once the join is complete each sample should have a the original sample data (Sample name, formatio , etc) and borehole name and the X,Y location of that borehole. Now you can use that X,Y location to create a new feature class of sample locations each point will have the data you want at the borehole location it was taken at (multiple points per borehole). When you query the new feature class on Formation = whatever it will only return the points that have that formation. If you want just one point per borehole look into building a "relationship" between your borehole feature class and you sample points table.
... View more
05-08-2022
04:31 AM
|
0
|
1
|
2061
|
|
POST
|
I don't think you can do it directly. But of course I might be wrong, lets hope someone else knows a way. Of course you can if you load the data from the file GDB into a SQL Server Enterprise GDB, but if you don't have the level of GIS software that allows you to do that you could try one more thing. If you can create a personal geodatabase and copy the data into that, that format is an MS Access file type. That you can either open directly in Access or bring it into SSMS.
... View more
05-05-2022
12:32 PM
|
1
|
0
|
1169
|
|
POST
|
Sorry for the short lived post, but I solved it.... I was using incorrect syntax. The syntax should have been: arcpy.management.CalculateField(fc,'Notes','SentenceCase.subsmade(!Notes!)','PYTHON3', 'import SentenceCase')
... View more
05-05-2022
08:58 AM
|
0
|
0
|
427
|
|
POST
|
I have a python script that corrects ALL CAPS into sentence case (Lets call it "SentCase.py" in this example) and includes a list of exceptions specific to my local area (I.E. "NAS THISCITY" becomes "NAS Thiscity" and not "Nas thiscity", etc). I want to call SentCase.py from another python script that will step through 20+ feature classes and use SentCase to correct a "Notes" field in each. What I have is some form of this, but (as you might have guessed already) it fails. The message I receive is "NameError: name 'subsmade' is not defined". arcpy.env.workspace = CGIntegrationsde
featClasses = arcpy.ListFeatureClasses('*Spatial*ET','','')
for fc in featClasses:
arcpy.management.CalculateField(fc,'Notes','subsmade(!Notes!)','PYTHON3', 'import SentCase.subsmade') SentCase.py is in the same directory as the called python script and I have tried to import SentCase into the calling script. Also "subsmade" is a function in SentCase.py. It is the only function in SentCase.py as a matter of fact. Any help would be appreciated. K
... View more
05-05-2022
08:41 AM
|
0
|
1
|
432
|
|
POST
|
Sorry, was out for a while. All of the methods I have suggested only update your symbology classes. Each class can be defined to have a certain style (I.E. "2 pnt Blue Dashed Line"), but these styles have to be set by hand for each class (unless you want to dig into customization through code). Since "Yes" and "No" are not symbol classes on their own (I.E. you want "Culvert - No" and "Dam - No" to be symbolized differently) I think the best answer is to define the styles for your symbol classes as you started doing initially. If you define "Culvert - Yes" to be one symbol you can replicate that symbol for "Culvert - No" and change its color slightly to distinguish it from the affirmative. Once all the classes have been defined you should be able to "Review" your line features at will and the line symbology will update as you go. The symbol classes will be saved with your project and should not change again. You could also use the "add the same layer to your map twice" method to keep the Dam, Culvert, etc. lines symbolized consistently in one version and then change the second version of the same layer to change symbol color as review progresses (I.E. from Review changes from "No" to "Yes").
... View more
05-05-2022
06:06 AM
|
0
|
1
|
1840
|
|
POST
|
You could try something like this using Arcade in your symbology Iif($feature.Review == 'Yes','Yes',$feature.BreakType) There are two other ways. One you have tried and will lead to 14 options each needing to by symbolize. The other option is to add the same layer to your map twice. Once symbolized on "BreakType" and once on "Review". Make the "Review" symbology very wide and draw it under your existing lines. But Arcade seems the simplest and closest to what you want to do.
... View more
05-04-2022
07:35 AM
|
0
|
3
|
1860
|
|
POST
|
I think it is because your "Status" field has been assigned a domain that controls the 'legal' values that can be populated into that field. However, a domain does not preclude the use of "Calculate Field" to assign a value that is not included in the domain. I think that is what happened here. I don't think 'void' is in the domain assigned to the "Status" field. In the example below my domain only includes the values NEW, EXISTING, and DELETED, but I used "Calculate Field" to set one record to 'Fred Flinstone', but the Select by Attribute dialog does not display that option (as in your image above) I think if you add "Void" to your domain and it should work.
... View more
04-27-2022
03:26 AM
|
2
|
1
|
2023
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-25-2025 07:54 AM | |
| 1 | 07-25-2025 10:45 AM | |
| 1 | 05-10-2022 11:06 AM | |
| 1 | 05-09-2022 04:05 AM | |
| 1 | 03-17-2022 04:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-25-2025
07:47 AM
|