Summary
A schema defines the structure or design of a database or database object, such as a table, view, index, stored procedure, or trigger. In a relational database, a schema defines the tables, fields in each table, relationships between fields and tables, and the grouping of objects within a database. In ArcGIS Pro, a schema of a feature service in Portal for ArcGIS can be imported to preserve the structure of the database in a new feature class.
This article describes the workflow to import a schema from a feature service in Portal for ArcGIS to ArcGIS Pro.
Procedure
- Add the feature service to ArcGIS Pro using the Add Data From Path option.
- In Portal for ArcGIS, navigate to the item details page of the feature service. Under the URL section, copy the path of the feature service.
- In ArcGIS Pro, on the Map tab, click the Add Data drop-down button in the Layer group and select Data From Path.
- In the Add Data From Path window, paste the copied URL of the feature service from Step 1(a) in the Path box and click Add.
The feature service is added in ArcGIS Pro.
- Use the Create Feature Class tool to create a new feature class and import the schema from the feature service.
- In the Geoprocessing pane, search for and click Create Feature Class (Data Management Tools).
- In the Create Feature Class pane, specify the Feature Class Location, Feature Class Name, and Geometry Type parameters.
- For the Template Dataset parameter, select the feature service added in Step 1 to copy the schema.
- For the Has M and Has Z parameters, if necessary, select Same as the template feature class to preserve the m-values and z-values of the feature service.
- Click Run.
A new feature class with the same schema as the feature service is created.
The image below demonstrates the schema of the feature service (image at the top) imported to a feature class (image at the bottom) in the fields views.