How to download\extract the content (data) of map service layer in one go?

6881
23
Jump to solution
09-02-2016 01:20 PM
JamalNUMAN
Legendary Contributor

How to download\extract the content (data) of map service layer in one go?

 

I couldn’t get the best practice in how to download\extract the content of map service layers in one go. Most of server tools end up with errors

 

Thank you

 

Best

 

Jamal

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
23 Replies
TanuHoque
Esri Regular Contributor

Hello Jamal (again ),

I see you are trying to copy features from a map service (aka map image) layer.

This is not something supported right out of the bat as this point.

Here is what you can do instead:

Hope this will help.

Thanks.

Tanu

JamalNUMAN
Legendary Contributor

Thanks Tanu

 

The “Feature Class to Feature Class” appears not to work

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
TanuHoque
Esri Regular Contributor

Hi Jamal,

I never tried using a service url in that gp tool. But that is a good idea. I will check with the team.

Seems like you missed the first steps I mentioned i.e. you need to add that as a feature layer in your map and then select that layer as an input to that gp tool

JamalNUMAN
Legendary Contributor

Thanks Tanu for the prompt help.

 

Not sure why Pro fails to drag\drop the layer into the “feature class to feature class” command. I’m using Pro 2.5

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
TanuHoque
Esri Regular Contributor

Jamal,

you are still adding the map service layer, not as a feature layer (pls note that in my last screen shot, the URL ends with '/0')

You need to add the sublayer off your map service to a map first.

Step#1:

Pls note the 'Cities' underneath the 'SampleWorldCities' is selected in my screenshot below. SampleWorldCities is the map service, whereas Cities is a sublayer (of feature layer type). You need to add Cities not SampleWorldCities (in my example). In your case you need to right-click on 'Communities_Ramallah_FC' (NOT Area_ABC_PalGrid1923) and select 'Add to Current Map'

once you add this, the TOC will look like this. Note, there is no parent layer for Cities.

at this point, it works like any feature layer that you can add from a FGDB or Enterprise database (aka SDE). You can set def query, you can change its symbology/renderer etc.

Step#2:

Open Feature Class to Feature Class gp tool

Step#3:

now you can drag/drop the layer (from the TOC/Content pane, NOT from the Catalog pane) to the gp tool, OR

just select the layer from the GP tool Input Features drop down.

please give this a try and let me know if you run into any issue.

JamalNUMAN
Legendary Contributor

Many thanks Tanu for the patience. It works like a charm

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
TanuHoque
Esri Regular Contributor

Yay!!! it works. Thanks for letting me know.

I understand it is not straight forward user experience. Unfortunately that is a situation we need to be aware of for now in Pro.

JamalNUMAN
Legendary Contributor

This appears not to work in ArcMap anyway. Am I correct?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
TanuHoque
Esri Regular Contributor

yep, that correct.

ArcMap does not allow you to add a sublayer off a map service layer .

JamalNUMAN
Legendary Contributor

How about exporting\downloading cached services? Is there any tool for that?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine