Select to view content in your preferred language

Selecting PLSS data from a table of attributes

574
4
02-12-2014 11:34 AM
JaromHlebasko
Frequent Contributor
Hello, I thought I would post a question I am having to see if Python can work with what I'm trying to accomplish. I know Python at the most basic level so any help would be appreciated. I am trying to select the appropriate township, range, section, quarter, and quarter quarter section data from a separate table that contains what I am wanting queried. In the most Lehman terms possible, I have one data set of PLSS data and then a separate table that has a column (attribute) of specific locations such as T 1 S R 3 W Section 27 or NWSW, NWSE, NENW, NESW, NESE, SWNE, SWSW, SWSE, SENW, SESW, SESE. What I am trying to accomplish is I want to generate an easy way of selecting my PLSS data from this table of attributes so I do not have to find them individually. I hope this makes sense.

Thank you kindly for any help!
Tags (2)
0 Kudos
4 Replies
NicholasCoffey
Emerging Contributor
If you are grouping all the PLSS data into one field, e.g. a single column with T,R,S, q, qq in one column in each row (record) then it would seem you could enter it into the attribute table.  This seems related to what I am doing with well logs.  I have a file called "wells" and I'm in an edit mode, creating new shapefiles... I have the edit tool set to open the attribute table a point at a time so I can write in the county well log code.  Later I will edit the attribute table to include elevation data so I can make cross sections and contour the water levels.  You might consider creating separate columns for each location parameter in the attribute table.  However, since locations are built in why not query the locations with a python macro?  I don't know how to do this so if you figure it out please pm me at grnchm@gmail.com.  I hope this was at least vaguely responsive and if it wasn't I apologize to you and all affected.
0 Kudos
JamesCrandall
MVP Alum
Hello, I thought I would post a question I am having to see if Python can work with what I'm trying to accomplish. I know Python at the most basic level so any help would be appreciated. I am trying to select the appropriate township, range, section, quarter, and quarter quarter section data from a separate table that contains what I am wanting queried. In the most Lehman terms possible, I have one data set of PLSS data and then a separate table that has a column (attribute) of specific locations such as T 1 S R 3 W Section 27 or NWSW, NWSE, NENW, NESW, NESE, SWNE, SWSW, SWSE, SENW, SESW, SESE. What I am trying to accomplish is I want to generate an easy way of selecting my PLSS data from this table of attributes so I do not have to find them individually. I hope this makes sense.

Thank you kindly for any help!


You may have to clarify a bit, but it doesn't sound like you need Python to accomplish this at all.  Why not simply join your PLSS layer with your table of attributes?  You can then just make your required selections on the PLSS layer.
0 Kudos
Zeke
by
Honored Contributor
If your set of PLSS data has the T, R, S... in separate columns, and your other table has them joined, you could just split the joined values and run a query on that, e.g. "Twp = newlist[0] and Rng = newlist[1] and Sec = newlist[2]..." and so on.

Even easier would be to make a new field in the first, PLSS, dataset and run a field calculation to concatenate your separate values, then join like James recommends above.
0 Kudos
benberman
Regular Contributor
you can create a sorted list of unique PLSS values

lst=sorted(set([row.getValue("attr field") for row in arcpy.SearchCursor(feature_class_name)]))
0 Kudos