# OGR WCTS Implementation

As a part of a project to implement a Coordinate Transformations Server for DM Solutions Group I am implementing a WCTS (Web Coordinate Transformation Server) attempting to conform to the OpenGIS internal discussion paper 02-061r2. This paper can be found in the OpenGIS internal documents are for OpenGIS members.

Note that this is not yet a specification, it is a proposal that might be adopted as a specification at some point, likely after further changes. Thus WCTS is a protocol in flux.

This implementation is based on the OGRSpatialReference class within the GDAL/OGR library. The underlying projections engine is PROJ.4, and the GML support from OGR is used.

The code implementing the server can be found in the GDAL/OGR CVS tree in the gdal/ogr/wcts directory, along with some sample request documents. Currently all the server specific code is in the ogrwcts.cpp file in this directory.

Some Implementation Details on features and limitations of the server are available. There is also an Installation and Configuration document.

Some sample XML input requests are available for the following requests:

- GetCapabilities

- IsTransformable

- Transform

- Transform using FileURL

A development server is running at http://maps.gdal.org/cgi-bin/ogrwcts. Some sample KVP encoded requests are:

- http://maps.gdal.org/cgi-bin/ogrwcts?REQUEST=GetCapabilities: Fetch the capabilities.

- http://maps.gdal.org/cgi-bin/ogrwcts?REQUEST=IsTransformable&SOURCECRS=EPSG:4001&TARGETCRS=EPSG:4002: Test if EPSG:4001 can be transformed to EPSG:4002.

Note that WCTS does not support KVP (including the arguments in the URL) usage for the actual transformation operations, so you need something that can PUT the XML request data to utilize the transform operator.

An HTML form based client (backed by a cgi-bin program) has been implemented for user interface to WCTS services and testing.

## Other WCTS Implementations

Currently there is only one other WCTS implementation in existance. That is the one done by lat/lon, the folks that write the WCTS document. That implementation is also open source, and can be found within the deegree project.

A user form for interacting with an instance of the deegree based server is available at lat/lon .