I have two datasets, the first is a polygon dataset of wellsite pads in NE British Columbia. The second is a point dataset representing well heads in the same area. The point dataset has an attribute describing the location of the well head, this is the attribute I want to use to label with.

The problem is, is that it is not a one to one relationship. One wellsite pad can have multiple wellheads on it and there is no attribute linking the two. What I want to do is label each well pad (polygon) with a list of stacked labels of well heads that are on that pad. See screenshot example of the kind of things I'm after.

enter image description here

I sketched up some examples in CAD to illustrate my problem. If I label the wellhead data I get something like the below sketch

enter image description here

How do I have the well head labels for each pad neatly ordered and stacked?

See screenshot below.

enter image description here

  • Why do you need to link or join your two datasets? If your points have the information, can't you just label those points? – Midavalo Jun 9 '17 at 16:44
  • The catch is I want the labels to grouped by the wellsite pad, i.e. a list for wellheads for each pad – rockycove Jun 9 '17 at 16:51
  • So your wellheads points aren't on the wellpad polygon? I'm not sure I understand the problem. Or are they just labeling in the wrong place? – Midavalo Jun 9 '17 at 16:53
  • I'll edit my post to include more info – rockycove Jun 9 '17 at 16:59
  • is all the info (pad sites) in the same table? – NULL.Dude Jun 9 '17 at 17:29

If all your data is located in the same table just create a label expression see below as example

def FindLabel ([attribute1], [attribute2], [attribute3]): return [LEGACY_ID] + "\n" + [attribute2] + "\n" + "[attribute3]

| improve this answer | |
  • I'm unsure how this would work? My understanding is that the well head labels are from different features, not different attributes of the same feature. – Midavalo Jun 9 '17 at 18:08
  • The attribute data I need is in the point shp, but there is no common attribute between the point shp and the polygon shp – rockycove Jun 9 '17 at 18:09
  • perform a join so all the data is in the polygon table then build your label expression for your appropriate fields gis.stackexchange.com/questions/151826/… – NULL.Dude Jun 9 '17 at 18:11
  • just realized you said there is no common identifier between the two tables...apologize for mis-reading – NULL.Dude Jun 9 '17 at 18:16
  • Hey no probs, apologies on how badly I worded it – rockycove Jun 9 '17 at 18:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.