Original: Use ArcGIS server to publish our data
Introduction
We have installed the service software for the ArcGIS system, which will show how to publish our own data through ArcGIS server and be able to display and edit it through a Web page.
Publish Data Services
In the Webgis development, the content of the map display can be divided into two categories: a basemap, or a vector map of the world, a map of China, a region of the basemap, the other is the business diagram, for remote sensing data dissemination of the WEBGIS application is remote sensing image of the border layer, for power operation is the tower, Line layer, for Water conservancy operations is the river, residents map layer.
This section is an example of a map service modeled on the Remote Sensing Image retrieval page of the Resource Satellite center. The Basemap section uses the Chinese vector map, and the border layer of the remote sensing image uses the spatial feature layer in ARCSDE.
Connect to ArcGIS Server using ArcMapOpen ArcMap and select Create a blank map to determine.
In the catalog sidebar on the right side of the ArcMap interface, click the + sign next to "GIS server" to expand the sub-menu.
Double-click Add ArcGIS Server, select Manage GIS services, next.
In the server URL, enter "http://Computer 8399/arcgis/services", enter the computer name in "host Name" and click Finish.
You can see that the directory Sidebar adds a node with the same name as your computer, which is the connection to your ArcGIS server. You can rename, view server properties, add new services, and more.
Making an Mxd filethe only file format supported by the ArcGIS Server Publishing Service is MXD. An mxd file is a project file that can contain many files, and you can add the basemap you want to publish and the data in ArcSDE to this file and publish it together with ArcGIS server. to generate an mxd file, simply add the required basemap and ARCSDE data to ArcMap and choose Save, and the ArcMap default save format is MXD. Adding basemapsThe basemap data uses the 4 million scale data exposed by the National Base Geographic Information Center, with a lower resolution. Data can be downloaded in Http://pan.baidu.com/s/1dD7vaxV . Click the + sign icon in the ArcMap toolbar to add data (I put the data on the desktop).
OK, why can't I find the desktop in the Add Data dialog box that pops up? here, you need to click the button with the + sign in the upper right corner of the dialog box to link to the folder. Select Desktop and click OK.
now we have entered the desktop, into the "National basic Geographic Information System Data" folder, select the "Border and provincial boundaries" in the bou2_4p.shp, OK.
The Basemap is already loaded, and you can try adding other data, such as rivers, roads, and so on.
Establish a link to ArcSDEExpand Database Connections in the contents sidebar, and select Add Spatial database connection.
Enter the connection information in the pop-up Spatial Database Connection dialog box (there are two ways to connect, one is to connect to SDE, and the other is a direct-attached PostgreSQL database, which is the second direct-connect approach). After entering the connection information, click "Test Connection", if the connection is successful, click OK, if you fail, you can only carefully check the connection information is wrong.
Once you are sure, you can see the connection connection to local_sde that we added. The Red fork in front indicates that there is no connection and the double-click is connected.
Drag the Sde.sde.IMAGE to the list of layers in ArcMap to complete the operation of adding a remote sensing image layer.
If you follow the steps above step by step, you will find that the "Sde.sde.IMAGE" layer is not found in your spatial database connection "Connection to Local_sde". This is a layer that you add yourself, and the author has exported it to a SHP format file that you can download to in Http://pan.baidu.com/s/1qWobI3M . After establishing a connection to the spatial database, right-click on "Connection to Local_sde" and select "Import \ Feature Class (single)" To import the shp file. Generate Mxd Filethe basemap and remote image spatial data to be published has been added to the ArcMap workspace. Next, click Save.
Publish an mxd file to ArcGIS ServerRight-click on the ArcGIS Server connection "WIN-IPND42OT7PA" and select "Add New Service". Enter the service name and description.
Enter the MXD data document used by the service publication, enter the server cache file path, and enter the maximum number of return entries.
Select the type of service support, the default selection is only the cartographic and KML two types. Since we need to insert new data or delete a piece of data, there are many scenarios where you need to select the feature Access service. The Feature Access Service provides a restful type of spatial data access interface, including crud. other page settings can be skipped directly until the service release is finalized.
If you use the Windows7 as the author and save the Mymxd.mxd file to the desktop, you will receive a prompt to not start the service.
this is because of the problem of Win7 access, my solution is to put the Mymxd.mxd file and the Basemap files are not placed on the desktop, and then republish the service.
after the service has been published, you need to restart the Windows Services management three Windows services related to ArcGIS server. Restart sequentially ArcGIS SOC Monitor,arcgis Server Object manager,arcgis server Manager Service.
has the service been released successfully? We can open IE browser, enter http://localhost:8399/arcgis/rest/services, if can access, then the service is published successfully.
Use ArcGIS Server to publish our data