Select to view content in your preferred language

Can I publish a map service with Server using an AGOL feature service

1550
5
Jump to solution
12-14-2021 11:32 AM
DWR_BuckEhler
New Contributor III

Does anyone know how to publish a Map Service from an AGOL Feature Service or if it is possible?

We have an AGOL Feature Service that we would like to have a web layer of with more advanced line decorations and labels. The only way to publish advanced line symbology is through a Map Service using ArcServer or Enterprise, but we don't want to sever the live connection to our Feature Service in AGOL. 

Is there a good method to do this or some other way to have complex line decorations in REST service? Currently, we are running ArcServer 10.8.1 (build 14362).

Thanks for any insights provided,

Buck

1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

There is no way to publish a registered service from a registered service. The hosting server must have access to the data directly, either through an enterprise geodatabase connection, or through loading the data to the Server / Datastore.

You can publish a Hosted Map Image layer that does what you want, but this only works if you own the source layer anyway.

There are a couple of ways you could still do this, but they're both a bit complicated.

  1. Use the JS 4.x API. It's currently possible to create more complex line symbols in web maps, but many of the settings are only accessible if you're writing the code yourself.
  2. Create a duplicate service in Portal, then use a script to synchronize the data from AGOL to Portal on a nightly / hourly basis. Configure a Hosted Map Image layer off of the duplicate.
- Josh Carlson
Kendall County GIS

View solution in original post

5 Replies
ChrisPy
New Contributor III

You said you have enterprise right? Why not just publish an editable feature service (map service + feature service)? Then add both mapserver and featurserver in AGOL as a web items. Unless I am missing something.

DWR_BuckEhler
New Contributor III

Thanks, ChrisPy. We don't have Enterprise, just ArcServer. The Feature Service was published a while ago and takes data from Collector and Field Maps so I'm hoping not to republish it.

0 Kudos
ChrisPy
New Contributor III

So apart from ArcGIS Server, you have Portal and SDE?

I'm assuming you have no test or dev environment to test this out as well? But like Josh suggested, you can either create another map service on your AGS if you have SDE as your registered datasource or a hosted feature service using a datastore setup. Then setup a python\fme script to pull data from AGOL feature service and load into again either your SDE replica Featureclass or directly update your hosted feature service on datastore.

The other simple setup is, assuming you have SDE, is:

  • grab the featureclass from the AGOL feature service, load into your SDE
  • then publish a new referenced map service (with edit access enabled and your symbology)
  • and then grab the AGS feature server rest url and add as an item in your AGOL and then switch this to the AGOL hosted feature service used on your AGOL webmap.
  • you can create another AGOL item using the AGS map server rest url (with the symbology you authored on Pro).
0 Kudos
jcarlson
MVP Esteemed Contributor

There is no way to publish a registered service from a registered service. The hosting server must have access to the data directly, either through an enterprise geodatabase connection, or through loading the data to the Server / Datastore.

You can publish a Hosted Map Image layer that does what you want, but this only works if you own the source layer anyway.

There are a couple of ways you could still do this, but they're both a bit complicated.

  1. Use the JS 4.x API. It's currently possible to create more complex line symbols in web maps, but many of the settings are only accessible if you're writing the code yourself.
  2. Create a duplicate service in Portal, then use a script to synchronize the data from AGOL to Portal on a nightly / hourly basis. Configure a Hosted Map Image layer off of the duplicate.
- Josh Carlson
Kendall County GIS
DWR_BuckEhler
New Contributor III

Thanks, Josh. Good to know that it isn't really possible using general ESRI tools. Thanks for the other suggestions. We'll look into those as we look for alternatives.

 

Buck

0 Kudos