ArcSDEStore

From GO1Wiki

This page discusses the usage and some of the limitations of the SYS Technologies ArcSDEFeatureStore component.

Table of contents

Introduction

ESRI provides ArcSDE API's allowing clients to interact with and manipulate the spatial data stored in an ArcSDE server instance. The ArcSDEFeatureStore component retrieves feature data from ArcSDE via their API's and provides GO-1 interfaces to this data, for use in a GO-1 compliant environment.

Using ArcSDEFeatureStore

Connecting to the ARCSDE

The ArcSDEFeatureStore uses the ArcSDE API's to query the spatial database. When servicing a request, it converts the ArcSDE's objects into GO1-compliant objects, facilitating it's use in a GO1 environment.

Configuring the ArcSDEFeatureStore for use in GO1WebServer

The following snippet of XML should be inserted into the GO1WebServer/WEB-INF/services.xml document:

 
<Layer buffer="0">
  <Name>ArcSDE</Name>
  <Title>ArcSDE9</Title>
  <Abstract>ArcSDE 9.0 Features from webcopserv</Abstract>
  <FeatureStores>
    <FeatureStore id="arcsde" enabled="true" namespace="arcsde">
      <DisplayName>ArcSDE</DisplayName>
      <Description>ArcSDE9</Description>
      <URI>arcsde://user:password@server:port/database</URI>
      <Parameters>
        <Param name="stylepath" value="file:///opt/tomcat/webapps/GO1WebServer/featurestyle/arcsde-featurestyle.xml"/>
        <Param name="layers" value="AWS_CITIES,AWS_SEAS,GRID15"/>
      </Parameters>
    </FeatureStore>
  </FeatureStores>
</Layer>

Configuration options

The buffer attribute in the first <Layer> tag should be set to zero. This tells GO1WebServer to not cache any of the data. For every request, the ArcSDEFeatureStore will query the ArcSDE spatial database.

The URI element is the most crucial configuration component. It tells the FeatureStore where & how to connect to the ArcSDE database. Replace the user, password, server, port & database portions of the URI with the appropriate values for your instance of ArcSDE.

The stylepath parameter defines the location of a default style definition document (SLD) for the data retrieved thru the FeatureStore.

The layers parameter is a comma-separated list of explicitly named layers for the ArcSDEFeatureStore to work with.

Caveats

In it's current incarnation, the ArcSDEFeatureStore supports retrieving the data enclosed within the given BBOX, helping with performance. However, it is completely ignorant with respect to retrieving layers based on its valid scale. IE, if you're zoomed to the whole world and are trying to load an ArcSDE layer with fine resolution data, the ArcSDEFeatureStore will retrieve all the data for the layer which will eat up a lot of memory.