Geodata services

Release 9.3.1 E-mail This Topic Printable Version Give Us Feedback

A geodata service allows you to access a geodatabase through a local area network (LAN) or the Internet using ArcGIS Server. The service exposes the ability to perform geodatabase replication operations, make copies using data extraction, and execute queries in the geodatabase. A geodata service can be added for any type of geodatabase including ArcSDE geodatabases, personal geodatabases, and file geodatabases.

Geodata services are useful in situations where you need to access geodatabases in remote locations. For example, a company may want to set up ArcSDE geodatabases to manage data in its Los Angeles and New York offices. Once created, each office can publish its ArcSDE geodatabase on the Internet using a geodata service. The geodata services can then be used to create replicas for the ArcSDE geodatabases. With geodatabase replication, the geodata services can also be used to periodically synchronize the changes in each geodatabase over the Internet.

Before working with geodata services, you should have a basic understanding of how geodatabases, geodatabase replication, and data extraction work. The topic Understanding distributed data in the ArcGIS Desktop Help is a good starting point. Additionally, it's helpful to have some experience performing replication and data extraction in the ArcGIS Desktop environment before attempting these operations with ArcGIS Server.

Preparing the geodatabase in ArcGIS Desktop

The first step to publishing any GIS service is to create the GIS resource that it will reference. For geodata services, the resource is either an ArcSDE geodatabase, a personal geodatabase, or a file geodatabase. You can create any of these types of geodatabases using ArcCatalog. In the Geodatabases and ArcSDE section of the help, you can find much information on geodatabase design and creation. Additionally, ESRI Press has published several books on architecting effective geodatabases.

If you plan on using your geodata services for geodatabase replication, you must make sure that the data is configured properly and is from an ArcSDE geodatabase. See the topic Preparing data for replication in the ArcGIS Desktop Help for additional information.

Publishing a geodata service

Two types of publishing operations can yield a geodata service: publishing from a geodatabase directly and publishing a geodata service with a map service. Once published, the geodata service can be used for synchronizing replicas or working with a geodatabase in a Web application or Web service.

Publishing from a geodatabase directly

Publishing from a geodatabase directly involves referencing a personal geodatabase, file geodatabase, or ArcSDE connection file that you want to publish as a service. The geodatabase or connection file needs to be in a location that is accessible to the server object container (SOC) account. For example, ArcSDE geodatabases in ArcCatalog are located in your profile directory under Application Data\ESRI\ArcCatalog. (Example: C:\Documents and Settings\myUserName\Application Data\ESRI\ArcCatalog\Connection to myServer.sde.) Unless you were logged in as the SOC account when the .sde connection file was created, the SOC account does not have access to this file. Before publishing the geodata service, it is recommended that you copy the connection file to a common directory to which the SOC account has been granted access.

When publishing a geodata service from ArcSDE for SQL Server Express, you need to save the connection to your geodatabase to create the connection file. To do this, browse to the geodatabase in ArcCatalog under the Database Servers node of the Catalog tree. Right-click the geodatabase you want to publish and click Save Connection. This creates a connection (.sde) file in your profile directory as described in the previous paragraph. You need to reference this connection file when publishing the geodatabase. As suggested, copy the connection file to a common location to which the SOC account has access before you publish the service.

Follow these steps to publish a geodata service:

  1. Click the Services tab in Manager.
  2. Click Publish GIS Resource.
  3. Enter the information as prompted, keeping in mind the following:
    • For Resource, browse to the geodatabase that you want to publish or its connection (.sde) file if it is an ArcSDE geodatabase.
    • If you need additional help, see Publishing a GIS resource to the server.

Publishing a geodata service with a map service

To publish a geodata service with a map service, you must enable geodata access from the capabilities list when publishing the map service. In this case, the map document must contain data from only one geodatabase. When the publishing process is completed, a map service and a geodata service with the same name are created and can be managed independently. Publishing a geodata service with a map service allows you to use the commands from the Distributed Geodatabase toolbar when you add the map service to ArcMap. The ArcGIS Desktop Help contains more information about using the commands on the Distributed Geodatabase toolbar.

Since the services are managed independently, you can configure each service to work well for different types of operations. For example, you may want to allow more instances and set longer time-outs to support replication operations with a geodata service. With the map service, however, you may want to keep shorter time-outs and limit the maximum number of instances to support operations such as viewing.

Follow these steps to publish a geodata service with a map service:

  1. Click the Services tab in Manager.
  2. Click Publish GIS Resource.
  3. Enter the information as prompted, keeping in mind the following:
    • For Resource, browse to the map document that you want to publish.
    • When choosing capabilities, be sure to check the box next to Geodata Access.
    • If you need additional help, see Publishing a GIS resource to the server.

Capabilities

Geodata services expose three capabilities. You can enable these capabilities when you create the service, or you can enable them later by editing the service properties:

Allowed operations

By default, geodata services are created with Query and Data extraction as allowed operations. To perform geodatabase replication, you must manually allow the Replication operation. See this link from Tuning and configuring services to learn about operations and how to set them.

Suggestions for configuring geodata services

When configuring a geodata service, consider the following:

Consuming the geodata service

The following diagram and examples describe how geodata services are consumed:

URL format

The URL for a Web-enabled geodata service takes the following format:

http://<server name>/<instance name>/services/<folder name (if the service resides in a folder)>/<service name>/GeoDataServer

For example, if you had a service Lima in the folder Peru running on a server myServer with the default instance name of arcgis, the URL would look like this:

http://myServer/arcgis/services/Peru/Lima/GeoDataServer