I have a layer that defines a connection to a database on an ArcGIS server on the LAN. If I right click it I don't see the "Data" or "Export" item in the menu. On the other hand if I start from a shapefile and create a layer for this shapefile the "Data" menu item with options such as "Export Data", "Export to CAD" is accessible...
In other words if I understand correctly the "lyr" file defines a data source for the features of the layer. And I see these features on the ArcMap. The problem is I can't export them to a shape file (so that I can see the data attribute table and able to access the features without a connection to the data source).
Solved! Go to Solution.
I resolved the issue some time ago, but maybe this info will be useful for someone.
The problem stemmed from the fact that the DB data were provided by a MapServer. Of course it looked as a regular layer in ArcMap but from what I understood after reading the docs the Map service provides imagery of the features for ArcMap instead of the actual shapes and coordinates. It turned out that the DB also provides the Feature service. Once I used that to add the layer to the map data export and all other conversion tools in ArcToolbox became available.
Perhaps it would be good if ArcMap let me know the reason why it can't export the data to a shapefile in the first place.
Layer files don't contain data so these file types cannot be exported. It contains a reference to the data and the symbology to draw it, but not the actual data. I believe to export the data it would need to be a layer package. A layer package contains the layer file as well as the shapefile it references. A lot of agencies will make .lyr files available, that way the user cannot edit the data but only view it.
Hope this helps!
Open that Layer file in ArcMap(simply double clicking on it will open that in ArcMap)--> The layer will show up in the Table of Contents--> R-click on the layer--> Export data--> Export the desired layer as a shapefile.
To quote the original poster " If I right click it I don't see the "Data" or "Export" item in the menu"
I've moved your post into the Managing Data space. You will get a much better answer here as the GeoNet Help is intended for community help and feedback. You can see more on the community structure, and what topics are under each space from the following documents:
ArcGIS Discussion Forums Migration Strategy
Thanks!
Timothy
I resolved the issue some time ago, but maybe this info will be useful for someone.
The problem stemmed from the fact that the DB data were provided by a MapServer. Of course it looked as a regular layer in ArcMap but from what I understood after reading the docs the Map service provides imagery of the features for ArcMap instead of the actual shapes and coordinates. It turned out that the DB also provides the Feature service. Once I used that to add the layer to the map data export and all other conversion tools in ArcToolbox became available.
Perhaps it would be good if ArcMap let me know the reason why it can't export the data to a shapefile in the first place.