how to add multipart polygons in AGOL?

4747
7
09-26-2016 12:14 AM
simoxu
by MVP Regular Contributor
MVP Regular Contributor

I can't find any tools in the Web map toolbar or in the Web appbuilder widgets.

I can add multipart polygon in ArcMap for the feature class, that's not a problem. In order to let the users add multipart polygons themselves, I published the feature class as a hosted service, built a webmap and then shared the map using a web application template. but there's no tool to allow the user to add multiple parts for a polygon feature.

So I guess AGOL does not support multipart polygon editing, please correct me if I am wrong...

Thanks.

Simo Xu

7 Replies
DanPatterson_Retired
MVP Emeritus

Creating a multipart feature—Help | ArcGIS for Desktop make them in arcmap

Create maps, scenes and apps—ArcGIS Online Help | ArcGIS most of AGOL is in creating from existing content

I can't find any reference to 'multipart' but you can have a look

simoxu
by MVP Regular Contributor
MVP Regular Contributor

Hi Dan,

ESRI local distributor got back to me and said there were no tools in AGOL to create multipart features.

Thanks,

Simo

KarenHansen
New Contributor

Were you able to find a work around? A custom tool perhaps?

0 Kudos
DanPatterson_Retired
MVP Emeritus

convert multipart to single part in arcmap is the current workaround

0 Kudos
simoxu
by MVP Regular Contributor
MVP Regular Contributor

Yes Karen, I found a work around.

The Edit widget in the Web Appbuilder is able to merge multiple polygons into one, so you'll get a multipart polygon. the steps are:

1.Publish a polygon feature service in AGOL/ Portal

2.Build a Web map including the polygon layer in the feature service created in step 1; And define the feature template also.

3.Create a web app in Web appbuilder and choose the Web map built in previous step

4. Choose the Edit widget, enable the Merge function in the Edit widget by checking the box right to the Merge text.

5. Save and Launch the Web app and start adding polygons in the app.

6.After adding multiple polygons, use the Selection tool and select the polygons

7.Click the Union tool and you get the multipart polygon.

Hope it works for you.

Cheers,

Simo

KennyKleewein
New Contributor II

Would the union tool work on lines as well as polygons? If so maybe I am missing a step. I am able to select multiple line features but when I try to click on the union button in the edit widget it doesn't appear to do anything? 

Any help is appreciated. 

Thanks, 

Kenny 

0 Kudos
AlixVezina
Esri Regular Contributor

Hi @simoxu ,

While you cannot manually create multi-part features using the Smart Editor, you can generate multi-part features from existing features using the Copy capability (available for lines and polygons only).

1. Select the layer's template you would like to append the new features into.

2. Select to copy features.

AlixVezina_0-1614358788580.png

3. Select the features to be copied.

4. Select to Create Multi-Geometry (Multi-part) features

AlixVezina_1-1614358851980.png

5. The multi-part feature is added to your target layer.

AlixVezina_2-1614358920006.png

 

Enabled this capability in the General Settings of the widget configuration.

AlixVezina_3-1614359068191.png

 

0 Kudos