Select to view content in your preferred language

Shall I keep shape files coming with a feature file to my content

1969
8
10-21-2022 02:51 AM
Shadi
by
Emerging Contributor
 
Hello everyone,
I noticed that whenever I publish features to ArcGIS Online a shape file and a service definition file remain in my content on Arconline Account, after the successful creation of the feature service. 
I got from the messages that it is kind of necessary to keep service definition files for any future changes on  feature layer but what about the shape files? Is it ok to delete them?
Thanks
0 Kudos
8 Replies
BernSzukalski
Esri Frequent Contributor

I assume you are publishing shapefiles from ArcGIS Pro given your description above. When publishing from Pro, it may be advantageous to keep the service definition around if you want to make future changes. Frankly speaking, if I'm going to publish a shapefile as a hosted feature layer I skip Pro and just do it directly from ArcGIS Online. Your workflow and organizational procedures will dictate the appropriate workflow for you.

Shadi
by
Emerging Contributor

Thanks for your answer. I use Arc pro because of the geoprocessing tools to make the changes I want on the layer and then I can publish it on Acronline. 

0 Kudos
ChristopherCounsell
MVP Regular Contributor

What are you doing to publish the service? Can't imagine a shapefile is created from publishing from ArcGIS Pro.

I imagine you are uploading a Shapefile and publishing to a hosted feature layer. For ArcGIS Online to do this, it will need to upload prior to creating the hosted feature layer... should be fine to delete if you have a local copy and don't want to have a second copy online. It won't be tied to your Hosted Feature Layer.

Shadi
by
Emerging Contributor

Thanks for the answer. I use Arcpro tools to make the changes I want on the shapefile and then I publish it on Arconline and it's the time the shapefile and service definition uploads on Arconline with the feature layer. I don't think there are professional edit tools on Arconline similar to Arcpro. Is it?

0 Kudos
BernSzukalski
Esri Frequent Contributor

You are correct, a shapefile is not a web-publishable format but you can create a feature layer using one. An advantage to keeping the shapefile in the ArcGIS Online workflow is that you can update the hosted feature layer with a new shapefile should it change. 

0 Kudos
LindaSlattery
Regular Contributor

@BernSzukalski Just confirming, if we are not going to update the shapefiles and FGD's, we can delete them without affecting the feature service in AGOL? They end up using credits for hosting files. This question also goes for CSV's.

Brooks_Andrews_CSRS
Emerging Contributor

Great question. As the keeper of credits for my org, I would also like to know the answer to this. 

0 Kudos
BernSzukalski
Esri Frequent Contributor

Storage of the source files for hosted feature layers does incur storage credits. Your best course of action will depend on your typical workflows, how often you update the hosted feature layer, and where/how it is used.

In general, if your workflow typically overwrites the hosted feature layer from the source shapefile, then it makes sense to keep it around so you can update (overwrite) from the source. Otherwise, there isn't a strong need to keep it around, so if you are looking for storage credit consumption economies, then you could get rid of them.

I typically archive shapefiles (and other files used to publish HFLs) locally or in a non-ArcGIS Online cloud and then can delete those stored in ArcGIS Online, knowing that I still have the originals should I ever need them again or ever need to replace them.