Skip to main content
Solved

Splitting text attributes into groups separated by blank lines.


Forum|alt.badge.img

Hi,

I have a multi-columns table with the first column contsing the Record Id and decription of the polygon. Each record can have one or more polygons in the description where each group is separated by blank lines as shown.

N1139-26

 

PositionCentroid : 49° 24.230'N 064° 33.127'W

Pt 1: 49° 41.000'N 065° 00.000'W

Pt 2: 49° 20.000'N 065° 00.000'W

Pt 3: 49° 11.001'N 064° 00.005'W

Pt 4: 49° 22.002'N 064° 00.005'W

 

Centroid : 49° 05.088'N 063° 29.568'W

Pt 1: 49° 22.000'N 064° 00.000'W

Pt 2: 49° 11.000'N 064° 00.000'W

Pt 3: 48° 48.002'N 063° 00.005'W

Pt 4: 49° 00.002'N 063° 00.005'W

I am able to extract the coordinates and plot the points. However I am unable to group the points to form proper polygons. Without grouping properly, they form zigzag lines.

The table consists of hundreds of similar records. Can anyone suggest how to plot these correctly.

Thanks.

Best answer by ebygomm

You can look at the AttributeCreator and adjacent attribute handling to assign groupings to your lines by incrementing a group attribute if a feature is preceded by a blank line

 

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • June 8, 2019

You can look at the AttributeCreator and adjacent attribute handling to assign groupings to your lines by incrementing a group attribute if a feature is preceded by a blank line

 


Forum|alt.badge.img
  • Author
  • June 8, 2019
ebygomm wrote:

You can look at the AttributeCreator and adjacent attribute handling to assign groupings to your lines by incrementing a group attribute if a feature is preceded by a blank line

 

Thanks @egomm for the quick response. That looks like the solution I am looking for. I will give it a try. Thanks again.


Forum|alt.badge.img
  • Author
  • June 9, 2019
ebygomm wrote:

You can look at the AttributeCreator and adjacent attribute handling to assign groupings to your lines by incrementing a group attribute if a feature is preceded by a blank line

 

@geomm Thanks. It works.


Forum|alt.badge.img
  • Author
  • June 9, 2019

Problem solved. @geomm


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings