Release and use of ArcGIS 10.2 map service

Source: Internet
Author: User
2 Release map service

2.1 create a map server

Open arccatalog, and under GIS servers on the left, double-click Add ArcGIS Server,

The add page is displayed. Select the administer GIS service item to go to the next step, as shown in the following figure,

Enter http: // machine name or IP: 6080/ArcGIS in the server URL, select ArcGIS Server for server type, enter the username and password of the previously configured ArcGIS Server Manager, and click Finish. Shows the added server,

2.2 publish geometric services

Geometry Service (geometry service) is a service used to perform geometric calculations, such as buffers, unitization, calculation area and length, and projection.

Open the GIS server, open the utilities directory, right-click geometry, and click Start to start the service, as shown below,

2.3 release the map service

1. After the map is ready, in the arccatalog software, double-click the folder connection, select the local map folder, and click OK to connect. For example

2. Right-click the added map server and click New folder to add the new folder Shantou (this is only an example here. You can also release the service without adding a folder, add folders to make the created services clearer)

3. Open the connected map folder, select the published map, right-click, and select-share as services,

4. Select "Publish a service" and click Next;

5. Select Server connection, enter the map service name, and click Next;

6. Select the published Service Directory, which is Shantou. You can also select root to publish to the root directory;

7. Click publish in the upper-right corner to publish a map. You can also view other configuration items before publishing the map. Generally, the default value is OK. (the default value of map service is map and kml, enough .)

8. Click OK to copy the map to the server;

9. The map is published successfully. Click "OK.

2.4 slice map service

1. Select the published map service (which must be in the startup status), right-click the service attribute,

2. Select the caching cache tag and using tiles from a cache,

3. Select the Advanced Settings option under caching, select enter scale, enter the determined slice scale, or slice according to the suggested scale. Click OK. The system will automatically slice in the background, and then you can use it.

2.5 featurelayer Service released

Add a database connection. Open arccatalog, select database connections on the left, and click Add database connection. Because the database used is Oracle, select oracle as the database platform, enter orcl in the database instance (based on your own settings), enter the username and password, and click OK to add the database instance;

2.5.1 Add the intersection secondary layer featurelayer Service

1. Database Connection-right-click -- import -- feature class (single );

2. Select the created SHP file of the auxiliary intersection layer, and enter t_public_crossinfo in the output feature class (or another name, to be consistent with other table names in the database ), click OK;

3. After the import is complete, you can click the corresponding table name for preview;

4. Open ArcMAP, click Add layer, and select the name of the table just imported in the database connection,

5. Click Save and save it as the stcrossinfo. mxd file. The preview is as follows;

6. Right-click stcrossinfo. mxd and choose share as service to publish the service.

7. Select publish a service option and click Next;

8. Select the published map server, enter the service name, and click Next;

9. Select the directory where the service is published (this is Shantou. You can select the root directory );

10. Click capabilities, check feature access, mapping, and kml as default services, and click Publish;

11. An error may be reported because the database is not registered. Double-click the error item In ArcMap to open the registration interface;

12. Click the plus sign on the right of the Database Registration option to add a database;

12. Add a name in the pop-up database registration interface, start with the name, and click the Add button;

13. Select Oracle for the database type, enter orcl for the local instance, enter IP Address/orcl for other machines, and enter the database username and password. Click OK and confirm to complete registration.

14. Click publish again to publish the service.

15. The service is successfully released and can be used;

2.5.2 Add the featurelayer service of publicshp

1. Import the three layers of the dot and line into the database in the same way as that of crossinfo. SHP. Refer to steps 1-5 in 2.5.1.

2. publicshp. mxd is an existing map file. You only need to reconfigure the data source here. Select point layer ---- right-click and click Properties;

3. Select the "Source" tab and click "Source". In the pop-up data source interface, select the public point layer t_public_point imported in the added database connection to add it. The line layer is the same as the preceding one. After the configuration is complete, save it as the publicshp. mxd file.

4. The process of publishing publicshp. mxd as a service is the same as that of crossinfo. mxd.

(5) Use of Services

1. The address of the map service is: start-all programs-ArcGIS 10.2 for server-Services Directory,

2. The address is http: // localhost: 6080/ArcGIS/rest/services,

3. Use of the mapserver Service

Click the Shantou folder to view the published services,

Open the shantoumap service at http: // localhost: 6080/ArcGIS/rest/services/Shantou/shantoumap/mapserver. The address is used by the program, as shown in the following code, when using localhost, you must change it to an IP address;

You can click the ArcGIS JavaScript link to open the preview, as shown in the following figure,

4. Use of the WFS Service,

Select the link of feature server. The URL is http: // localhost: 6080/ArcGIS/rest/services/Shantou/publicshp/featureserver.

This service is provided to the program for calling. It is selected based on the needs of the layer. The URL also has a matching address. For example, select the point layer and click the link. The URL is http: // localhost: 6080/ArcGIS/rest/services/Shantou/publicshp/featureserver/0. The following/0 indicates the layer where the WFS service serial number is 0. This layer is described as follows, the following describes how to enable it:

Release and use of ArcGIS 10.2 map service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.