I have a polygon grid that covers the an area of concern, I have created polylines from the fishing events, each fishing event is associated with the number of salmon caught. Some of the lines span two grid squares. I need to rank the grids based on the number of salmon caught. If the line spans two grids what grid should be ranked highest is one question. We don't know if the majority of the fish were caught in one grid square or the other so how can you defend that one or the other grid square should be ranked the highest.
Is there a way to address this is the most defensible way possible?
Thanks
Solved! Go to Solution.
Thanks Dan, my file was not projected but it is now.... I added a new field and used the field calculator and the length field works just fine.
Thanks again, I think I can move forward.
good news... good luck
Well, I am getting closer.
Now that I have created my split. I have two columns for length. One with the the total length of the line, and one with the split line lengths.
one set of rows for one line that spans 2 grid squares
total length field
4518
4518
split length field
2475
2042
I am unsure how to calculate the percents using the field calculator as each set of total length and split length are unique. I can not use the query split length/total length to get the percent for each set of split lines as the query would lump all rows together
Is there a query that can be used that will separate out each set of split length rows based on the total length field and the identical values found for one set within those rows?
I have a column that is numbered 1 to... for each set of rows that correlate to a split line those numbers are duplicated...such as in the example below :
number field total length field split length field
1 4518 2475
1 4518 2042
the same applies for all the sets. Can I write a query that would identify each set based on the number field ?
you shouldn't need to query, just divide the split length field by the total length field. Should you need to do a subset, ie query for 1, then perform the calculation, the field calculator does the calculations on
a selection.... just like in a spreadsheet
Ok, I thought there might be a way to do all the sub sets at once so I didn't have to select ea. subset, perform the calculation and repeat.
Thanks
that is my point
if each segment has an original id number and you split it, there should be 2 or more records with the same original id, the same original length and a new length.... take the new length field and divide by the original length field.... don't be afraid...make a copy of the file first and test on the copy ![]()
I got it, thanks
and everyone around you survived ![]()
barely ha ha....thanks for sticking with me.