How to Publish a Layer Online
Summary: The workflow begins by preparing the layer in
ArcCatalog, then symbolizing the mxd, making the service, then publishing in
ArcMap. Then adding the layer to the online platform in
ArcGIS Online.
Workflow
In ArcCatalog
- Import the layer to the SDE with the name it will have in the SDE
- Set Privileges: Right-Click the Feature Class -> Manage to access the Privileges and Feature Class Settings:
- Register as Versioned
- Create Attachments if fielders need the ability to add photographs to the layer.
- Enable editor tracking if it is in the working database. This adds fields that records who added a record and when.
- Change alias so it appears with a descriptive name in the mxd and elsewhere
- Add the layer from the SDE to the mxd.
In ArcMap
- Set the data source to the SDE listed in the Mapping\EGDB_Connections folder.
- Symbolize the feature types
- Set the visible scales
- Save the mxd to Web_Mapping\MXD
- Make the service.
- File>Share As>Service brings you to this.
- The Service name should be the same as the mxd
- Publish to X_OneFiber for the Chicago market.
- Publish the service.
- In Service Editor go into Capabilities, uncheck KML and, only if the layer will be editable, check Feature Access. Otherwise, it will be a map service.
- Fill in the Item Description fields
- Click Analyze, then Publish.
- Go to the Server Manager
- Click Feature Access if the layer will be editable. This will create a REST url that ends in “FeatureServer”. If it’s not editable, click Mapping.
- Copy the REST url
In ArcGIS Online
- Go to my ESRI online account
- Click Add Item and choose From URL.
- Paste the REST url into the URL field, click outside of it, then login and click Add Item, then OK.
- Establish sharing for the layer
- Go to Content in my online ESRI account and choose the groups to share with.
- Add the layer to the map
- Go to My Organization, click Maps and search for the map to which the layer should be added.
- Click Add>Search for Layers and add the layer
- Click the + to add the layer to the map and Save.
Publishing Task:
Academic Experience
This is a summary of an academic project on which I gained experience with Arc Toolbox tools, including those for Data Management, Analysis, Spatial Analysis and Conversion. Below is an academic example of a project for which I used ArcMap tools.
Coursera MOOC: Geospatial and Environmental Analysis
As a student in the Coursera UC-Davis MOOC, Geospatial and Environmental Analysis, I was tasked with analyzing ozone concentrations in relation to household income and elevation above sea level in California. The project was based on data for those variables from 2010 to 2011.
Tasks, Hypothesis, Workflow, and Conclusion
I need two maps and two graphs. I will need to join layers and tables to make the graphs and maps. The results can be used for both.
Data provided: elevation, ozone, and household income data.
Tasks
Form a hypothesis about the variables. Consider the relationship between lower atmospheric ozone concentrations and elevation is and the relationship between ozone concentration and household income is. Are there any relationships at all? This is my investigation.
Hypothesis
I would think the relationship between income and ozone concentrations would be inverse (lower income, higher concentrations) and the ozone to elevation relationship would be direct.
Workflow
In order to create a graph of ozone and elevation, I attached ozone means and the DEM 30 raster to the air quality stations point layer.
Join using Extract Multi Values to Points tool
Join the ozone_average table to attribute table of air_quality_locations point feature layer, by right clicking the layer > Joins and Relates > Join (check "keep only matching records" to exclude null values)
Right click on air_quality_locations
Join with ozone_averages, using Site from the layer and Site_id from the table as the fields
This adds the field avg_ozone_2010_2011 to the layer
Since this is just a temporary join, make it permanent by exporting it as a shapefile (named air_quality_locations_ozone.shp). The permanent shapefile is necessary to prevent the error "Could not open workspace %1."
Attach elevation field from DEM raster to the attribute table of the air_quality_locations_ozone layer
If the two layers were both vector, I could do a spatial join. But since one is a raster, I need the Extract Multi Values to Points tool.
Using the Extract Multi Values tool produces an error saying, "Cannot open workspace %1." Therefore, Extract Multi Values to Points is the necessary tool
Input feature class: air_quality_locations_ozone
input raster: dem_30_ca
(don't select the option to interpolate values)
With this layer, create a TIN and raster for ozone concentrations to compare ozone data vs. household income
The TIN is essential because it provides elevation data with each air quality station
3D Analyst > Data Management > TIN > Create TIN
Input feature class: air_quality_locations_ozone
height field: avg_ozone_ which was named avg_ozone_2010_2011 in the ozone_averages table
(coordinate NAD_1983_California_Teale_Albers); Output TIN: AirQualityTIN
Convert AirQualityTIN to raster:
Convert TIN to raster: 3D Analyst > Conversion > TIN > TIN to Raster
Input TIN: Airquality_Ozone_to_TIN; Output Raster: AQ_TIN2Raster (file name must be <=13 characters)
(Float, Linear, Sampling Distance = CELLSIZE 30)
Create a graph of ozone and household income
Use Zonal statistics as table tool to create a table of mean ozone values using census tracts as your zones
I can use this new layer's ozone values to make the graph comparing those to household income.
Spatial Analyst tools > Zonal statistics as Table tool
Input raster or feature zone data: census_tracts_with_income; zone field: GEOID
Input value raster: AQ_TIN2Raster
Statistic type: Mean
Output table: census_tracts_with_income_ozone
Joined this table with census_tracts_with_income using GEOID field where join was based and exported it as permanent data layer census_tracts_with_income_ozone
Created graph of household_income (Y axis) vs ozone concentration (X axis) with trend line using attribute table from census_tracts_with_income_ozone
Created graph of ozone concentration (Y axis) vs elevation (X axis) from attribute table of air_quality_locations_ozone
Dissolve census_tract_with_income_ozone to county level
Data management > Dissolve tool
Input feature: census_tract_with_income
Output feature class: census_tracts_with income_ozone_dissolved
Dissolve field: block_id , which gives me county boundaries
Field: MEAN (statistics type – MEAN) If I do not specify a statistic type, it will complain the "statistic field is empty."
Conclusion
According to my two graphs, I was right because the income trendline goes down to the right and the elevation trendline goes up to the right.
I think the dataset and results could be improved by adding air quality monitoring stations in the less populated eastern half of the state.
Final Results