I have polylines of the sections and monuments. I need to create quarter sections lines. I am not sure what is the best way to achieve this without connecting the lines manual. I am sure some one has come across this before. So if anyone can help me out that would be awesome. Pic 1 show what i have and pic.2 is what i am trying to achieve.
Sorry about that, it was a coding error, updated code attached. I tested with your point layer and it seems to work fine.
You can download Quarter Quarter section lines for each state here: http://nationalcad.org/download/PLSS-CadNSDI-Data-Set-Availability.pdf. You would then want to look for the seconddivison layer within the geodatabase.
thanks to all that helped. I tried multiple ways and found that both suggestions from Chris Ringo and Chris Donohue worked. Each one will require some manual work but better than doing it all manually.
Chris,
I tried your approach and noticed that there seems to be allot of overlapping lines which would require allot of editing.
It would take some more work, yes, and I really don't have any more time to spend on this. But you said you already had the section lines, correct? You can just merge the two together and you'll have everything you need.
Right, I've used that tool and it works well. But doesn't do what this person is asking, as it doesn't take into account existing PLSS corners...
Perhaps I'm late to the game but I found a Python toolbox that handles quarter sections plus labels well - http://ianbroad.com/creating-quarter-quarter-section-grid-python/
I realized that i should update the x,y after posted. Would it be hard to include in the script to also make the sections lines?
You'll need to make the distance parameter a bit larger than half the typical side of a quarter-section, which is 2640 ft. Try 3000 ft instead, and it should work fine.The script goes through all section centers (the points labeled 'CNT') and connects the center to each of the quarter-section points (labeled 'QRT'). If the script doesn't find exactly 4 points, it will print a warning, as you saw (in each case it found 0 points because your search distance was too small). When you run it on your full layer, you can use those messages to fine-tune the distance. As I indicated before, the script may not work well if your sections are too far from square. In those cases you would need to connect the points by hand if you use this tool.Also, I edited the script to create quarter and quarter-quarter section lines - the one I posted only created quarter-section lines. I've attached the updated one.
I tried the tool box with the data attached, i set up the script parameters and ran the script (see attached) but there is not data in the cvs file. I am not sure what i am doing wrong.
I didn't go into detail on how to use Grid Index Features, so sorry for the confusion. The deal with using this tool is one needs to fill in several of the settings, some of which are not intuitive.
Input Features (optional): use your points layer
Number of Rows (optional): Number of the maximum count of points in the X dimension
Number of Columns (optional): Number of the maximum count of points in the Y dimension
Then run it. Note that the goal is to have one "box" (in the GridIndex) per point. Note that the resulting grid will have the points somewhat scattered around each box, i.e. the points won't be exactly in the same point in each box. But that's OK, we're using the grid (boxes) purely to derive the sort order, not as a final result.
In the resulting GridIndex, there will be a field called "PageNumber". That field represents the draw order for East-West, so that one is ready to go if you don't mind that it will create the extra diagonal lines as it creates the East-West linework (details on how to clean that up below).
The North-South order will need some processing of the existing attributes to derive it. Start by creating a new field (text) in the GridIndex like "SortNorthSouth" (Short Integer). Then use Field Calculator with the following VB statement (or use the Python equivalent):
Right( [PageName],1 )
Note that you may have to play with the value after the [PageName], depending upon how many digits your numbers have to correctly capture the value. For example, if the number values go up to 99, use ",2".
You will now have a grid that can be Spatial Joined to the points that will provide the proper order for lines to be drawn to the points.
Target: Your points
Join Features: the GridIndexFeatures
Match Option (optional): HAVE_THEIR_CENTER_IN
Next is the Feature to Line Geoproccesing Tool on your joined points, with one run for the NorthSouth lines and a second run to do the East-West lines:
- For each run use the Sort Field (optional) set to the field that provides the sorting.
The final result will look weird at first and need some final cleanup:
-The North-South lines will have some East-West segments.
-The East-West lines will have diagonal segments.
I'd start by getting rid of the diagonal lines in the East-West linework by starting an editing session and manually selecting and deleting them. There's probably a more elegant way to do this, but I'm blank at the moment on how to do it.
As for the unwanted East-West segments as part of the North-South linework, there are several options to eliminate them, but the easiest is probably to Union the North-South layer with the cleaned up (no diagonals) East-West linework, then taking the output and running a Dissolve on it.
Note that if at the end of all this you need their to be distinct lines between each point, there are several methods available to break up the lines at intersections and points.
Methods for splitting line features—Help | ArcGIS for Desktop
Anyways, give this a shot. There may have to be a few tweaks here or there to fine-tune it for your data, but it should work.
Chris Donohue, GISP
Did you classify your lines before sort?
Did you sort based on one field or the two fields ?
add two fields for sort ( first horizontal class field , second x field)
Chris i tried your approach and i ran into some issues. so when i used the 'Grid Index Features' tool on the monument points i just created one big polygon that covered all the points. You stated that i should 'Sort order on Grid' problem is that there is only one polygon that was generated from the 'Grid Index Features' tool. So I am not sure if am not understand you.
The layer already had x,y i just updated the the fields. I used the 'Sort' and i added the two fields y,x which with made an out put of 'Monuments_points_sort', then i did the 'Sort' again as stated on the 'Monuments_points_sort' and i added the two fields x,y which made an out put of 'Monuments_points_sort_sort'. I then used the 'Points to Line' on 'Monuments_points_sort_sort': Line field i used 'Corner_type', in the soft field is used 'ObjectID'. which gave me an error
RuntimeError: ERROR 999999: Error executing function.Completed script PointsToLine...Failed to execute (PointsToLine).
I also have wanted to do this but cutting quarters into LSDs. So same concept just smaller squares.
I have not found a tool that does this. The parcel fabric tools allow one to do this but only manually with many steps. I require an automated approach since there are many thousands of quarter sections to split up.
The approach I was working on but have not completed was to create an iterative model that would:
1. Select a quarter section polygon.
2. Convert to four polylines of the quarter section outline.
3. Create mid-points for all four lines.
4. Create polylines from these mid-points so that two lines half the quarter section east-west and north-south.
5. Cut the quarter section with these polylines.
6. Label the new LSDs.
Repeat thousands of times.
The problem, besides running out of time, was that I couldn't sort the mid-points to ID which one's were east, west, north, south to make the bisecting polylines. But it seemed like this would work based on a few tests.
maybe my suggest is not clear, but I said we will make classes the is for group each line.
you will define the tolerance and group each align points horizontal into class and vertical points into class( the point has two classes one for vertical and other for horizontal)
the correct is you will define the tolerance and group each align points horizontal into classes and vertical points into classes( ech point has two classes one for vertical and other for horizontal)
1and I said that we will use sort twice one for horizontal and one for vertical.
and use Sort tool again for vertical and y fields.
so we will use point to line twice either one for vertical and other for horizontal. And by using classes that I mentioned in point to line the line will never draws as your picture , Chris
I've attached a tool that you can use to create the interior quarter-section lines as I described in my post. In the zip there's a toolbox/script together a sample sections layer, a sample point layer, and mxd. It's a fairly simple script without much error-checking, but the workflow would be the following:
1) Run the script using your point layer as input; it will produce a text file of the interior quarter-section line segments as output. There's a distance parameter that I've defaulted to 1000 that you may need to adjust - the distance units are the same as your input point FC. It should be a bit larger than a typical side of a quarter-section (2640 feet, so I set the default to 1000 because the projection of my input point file had meters as the distance unit). The point of the parameter is that it needs to be big enough to select only the four quarter-section points closest to the section center, and no more. If you have sections that are really wonky, it may not work very well..
2) To convert the coordinates in the output text file to a FC, use the "XY to Line" tool (Data management/Features) - make sure to set the projection to that of your input point FC. The x- and y- coordinate fields to use should be obvious...
3) Merge these lines into your section lines (which you said you already had), and you'll have your quarter-sections.
Let me know if you need any clarification!
Chris
If the data is not perfectly North/South and East/West, an approach that would work that builds on what Abdullah Anter suggested would be to create a North/South and East West exact grid that covers the extent of your points by using Grid Index Features (geoprocessing tool), then derive the Sort Order for that Grid. Next, Spatial Join (geoprocessing tool) the grid to your actual points (so the sort order gets transferred over). Then you can run Abdullah's suggestion based on the exact grid sort order fields so the lines are drawn in the correct sequence (as opposed to the real points sort order, which can lead to backtracks).
Grid Index Features—Help | ArcGIS for Desktop Geoprocessing Tool
Spatial Join—Help | ArcGIS for Desktop Spatial Join Geoprocessing Tool. For the "Match Option" setting, use "Have their Center in"
Abdullah Anter has an good approach. However, check the output carefully, as unfortunately there will likely be issues if all your points are not all aligned exactly North/South and East/West. If they are not aligned exactly, some of the resulting lines will be "backtracking" and require some cleanup. Still, this is a good start that may resolve most of your lines (and probably be easier than drawing all the lines manually).
For example, note that the Y value for the point circled in red is slightly higher than the Y values for the points on either side. When the line is drawn automatically, it bypasses this point, then backtracks later to it.
CC Weedcontrol ,if your quarter lines align from north to south and from west to east, there is a solution for your issue.
the points are align horizontal and vertical .and that is the clue
the solution is :
Frist : it is attribute task . you will add x and y coordinates field Add XY Coordinates—Help | ArcGIS Desktop
so you can classify each align points into classes , you will define the tolerance and group each align points horizontal into class and vertical points into class( the point has two classes one for vertical and other for horizontal)
Second :you will use Sort Tool Sort—Help | ArcGIS Desktop and you will add two fields for sort ( first horizontal class field , second x field)
Third : now you can get your quarter lines if you use Point To Line Tool Points To Line—Help | ArcGIS Desktop and use ID field of sort in this tool. And class field for line field in this tool.
I hope my answer be clear.
I was hopping there was a tool that would do that since my python is not very good when it comes to something like this. I was hopping maybe someone had already done or figured out how to do something like this but i can't image i am the only one that has faced this issue, but may i am. Any help on how to accomplish this would be awesome.
Thanks.
You could write some code to go through the section centers (attributed as "CNT"?) one at a time. You should be able to pick out the the four closest quarter section corners ("QRT" in the attribute table?) using a selection distance of a bit more than half the average quarter section width of 1320 ft. Then you can use the coordinates in the attribute table to connect the center point with each of the four quarter-section corner points and you'd have your four remaining quarter section lines. I assume the relevant points are attributed as in the picture below?
I could also make the section line boundary ( i have those already, which is why i am needing the quarter lines) but if i can come up with a process to connect all points, sections points and quarter points that would work fine.
There is some attribute data see the pic i attached.
I did try the 'Points to line' with no luck well i did get a lot of lines but not what i was looking for. ha ha.
All lines only run north-south and eas-west.
In the attribute table there is a x, y coordinate and 'Corner type'.
See attached pic of the attribute table.
Point of clarification - if I understand correctly, you have all the lines depicted in the first example, but need to cull them down to only the quarter section ones (so a subset) - is that correct? If that is the case, are the lines already attributed so you know which ones are the section lines (so there is a basis to then do the quarter-sections)?
Also, points are shown in the examples. Are the points attributed in any way that would help define which lines are section lines and which ones are quarter-sections? I ask as one way to do this might be to build the lines from the points using Points to Lines, but before doing so the points will need attributes that allow the correct assembly.
Points To Line—Help | ArcGIS for Desktop
Another question - are the lines all roughly North-South and East-West, or are some of them in other orientations (like NW-SE)? If they are all North-South and East-West, one may be able use their increasing X or Y values to help in differentiating them.
hmmm there is probably nothing in the point table that would enable you to identify which points belong to which quarter section. That might be useful for a connecting the dots approach
Dan, we have 654 sections.
They look like equal distance but they are not but some might be. The county is odd shape and we have government lots so those are not a full section.
Do you have 10's, 100's or 1000's to do?
in your picture I see it is equal distance, so I answered with copy parallel
That would work if the sections line where equal distance but they are not. I need to be able to snap point to point to create the quarter lines.
You can use copy parallel in Editor toolbar as in the picture :
Just define the quarter distance and select the line/lines and copy parallel.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.