Changes between Initial Version and Version 1 of FdoClientUtilities


Ignore:
Timestamp:
10/17/07 06:45:21 (17 years ago)
Author:
oresthalustchak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FdoClientUtilities

    v1 v1  
     1= FDO Client Utilities =
     2
     3There has been some discussion recently about client-side utilities for FDO access. For instance, there was a discussion around the use of coordinate system transformation libraries, whether we should be included that in FDO itself or whether they should be included in a client-side utility package. This came out of an email discussion of handling of geometry length and area functions.
     4
     5There also has been discussion around ways to level the capabilities of providers by making adding client-side additions that implement capabilities that are missing from providers that are being used. Haris expressed interest in this sort of direction.
     6
     7This page is meant to let everyone add their thoughts around these topics. Some initial information is included to prime the pump. Please add your thoughts and ideas.
     8
     9Where can added functionality be included? Here are three general approaches.
     10
     11 1. Client-side library that callers of FDO can use for further processing. E.g. projection.
     12
     13 2. Client-side wrapper around FDO that has client-side added functionality. E.g. caching, joined / extended classes, projection.
     14
     15 3. Functions that can be used by provider writers. E.g. expression evaluation. Providers can incorporate added functionality by reusing common components.
     16
     17The three options are fairly different in terms of what typically would be supported by each, but there is some potential overlap. Projection support is one that could be added via any of these mechanisms.
     18 
     19[[BR]][[BR]]
     20== 1. Client-side library. ==
     21
     22A separate library makes sense for utility tools that are not part of provider access themselves, but that are frequently used together with data access. This can include:
     23
     24 * Coordinate projection.
     25 * Geometry and Raster tools.
     26 * Translation tools for external formats.
     27
     28A client-side utility library can be used in a more distributed application where the actual FDO providers are in a different tier.
     29
     30Pros:
     31 * Flexibility and generality in the functionality that can be provided.
     32 * Can be on a separate tier from the actual FDO access.
     33 * Independent of any providers.
     34
     35Cons:
     36 * Separate functions that need to be called outside of FDO access. E.g. for projection support, would have to make separate function calls to project data rather than having them automatically projected in the correct direction if they were part of the FDO API.
     37 
     38[[BR]][[BR]]
     39== 2. Client-side FDO wrapper. ==
     40
     41This is a wrapper around the FDO API that the user calls instead of calling the provider FDO interface. Is the API for this wrapper the FDO api itself or is it a different API? For instance, the current Feature Services API is a wrapper around FDO but is a different API.
     42
     43Some functions may not make sense putting inside providers such as client-side caching. One category of functions in a wrapper would be to augment functionality that a particular provider does not support. E.g. a wrapper may perform a select aggregate operation for a provider that does not implement that command.
     44
     45Another category is functionality that builds on information outside of a provider’s data such as client-side joins between data stores. (Should be part of a wrapper or part of a utility library?)
     46
     47Pros:
     48 * Client applications don’t need to change very much to take advantage of this (if we use the FDO API for the wrapper).
     49 * Added functionality becomes almost transparent.
     50
     51Cons:
     52 * Possible duplication what is available in the Platform Feature Services API.
     53 * Duplicating the whole FDO interface – it’s almost another provider.
     54 * Some things in a client-side utility library could not be added to an FDO wrapper without additions to the FDO API. An example of this is projection support.
     55
     56An FDO wrapper layer could only be used in the same tier as the actual providers since that layer would be calling FDO directly. Why wouldn’t we just extend the existing platform Feature Services API instead of doing this? Possible reasons:
     57
     58 * De-coupling from platform resource services requirements.
     59 * Deploy outside of MapGuide.
     60 * Avoiding stateless services, e.g. being able to control transactions via commit and rollback rather than having to set up all edits for a transaction to execute as a single call.
     61 
     62[[BR]][[BR]]
     63== 3. Functions that can be used by providers. ==
     64
     65A good example of this is an expression engine that a provider writer can call from within the provider that they write. The current SDF and SHP providers internally use an expression engine. Providers based on RDBMS servers don’t need to use this as the native server provides that functionality.
     66
     67Pros:
     68 * Easier for provider writers. They can reuse code.
     69 * Consistent behavior between providers.
     70
     71Cons:
     72 * Shared functions have to be written in a very generic way.