COORDINATE SYSTEM TRANSFORM SERVICE REFERENCE
Information in this document is subject to change without notice and does not represent a commitment on the part of the vendor or its representatives. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, without the written permission of MapInfo Corporation, One Global View, Troy, New York 12180-8399. 2006 MapInfo Corporation. All rights reserved. MapInfo, the MapInfo logo, MapXtreme, MapMarker, miaware, Envinsa, and StreetPro are trademarks of MapInfo Corporation and/or its affiliates. Copyright 2006 The Legion Of The Bouncy Castle Copyright 2000-2006 IPDR Organization All Rights Reserved Copyright 2006, International Business Machines Corporation and others. All Rights Reserved. Copyright 2006 Open GIS Consortium, Inc., All Rights Reserved. Copyright 2006 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. This product includes software developed by the Apache Software Foundation (http://www.apache.org/). Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. MapInfo Corporate Headquarters: Voice: (518) 285-6000 Fax: (518) 285-6070 Sales Info Hotline: (800) 327-8627 Government Sales Hotline: (800) 619-2333 Technical Support Hotline: (518) 285-7283 Technical Support Fax: (518) 285-6080 Contact information for all MapInfo offices is located at: http://www.mapinfo.com/contactus. Adobe Acrobat is a registered trademark of Adobe Systems Incorporated in the United States. Products named herein may be trademarks of their respective manufacturers and are hereby recognized. Trademarked names are used editorially, to the benefit of the trademark owner, with no intent to infringe on the trademark. January 2006
Table of Contents Chapter 1: Introduction.................................................... 4 What is the Coordinate System Transform Service?................................. 5 What is a Coordinate System?.................................................. 5 Coordinate System Transform Functionality........................................ 6 Chapter 2: Coordinate System Transform Capabilities........................... 7 Changing from One Coordinate System to Another.................................. 8
Introduction 1 Welcome to the MapInfo Envinsa Platform Web Services. This guide provides descriptions and examples for the developer who is writing applications that access the Coordinate System Transform Service. The Coordinate System Transform Service transforms the coordinates of a geometry from one coordinate reference system to another. In this section: What is the Coordinate System Transform Service?...... 5 Coordinate System Transform Functionality............. 6
Coordinate System Transform Service Reference Chapter 1: Introduction What is the Coordinate System Transform Service? The Coordinate System Transform Service transforms the coordinates of a GML geometry from one coordinate reference system to another. The user specifies the source coordinate reference system, target coordinate reference system, and the geometries to be transformed. The service then returns the transformed geometries. The Coordinate System Transform Service is able to transform multiple geometries in a single request. The following GML geometries can be transformed by this service: CircleByCenterPoint CircularArc Ellipse Envelope LineString LinearRing MultiPolygon Polygon Point You use the Coordinate System Transform Service when working with multiple data sets that use different coordinate systems. For example, suppose you want to display locations from a mobile device, such as a GPS unit, onto a map that uses a different coordinate system than the mobile device. You can use the Coordinate System Transform Service to translate the locations from the mobile device into the coordinate system used by the map. What is a Coordinate System? The terms "projection" and "coordinate system" are often used interchangeably. However they do not mean the same thing. Projection An equation or set of equations that contain mathematical parameters for a map. The exact number and nature of the parameters depends upon the type of projection. You can think of a projection as a method of reducing a map s distortion caused by the curvature of the Earth, or more precisely, a projection compensates for the shortcomings of depicting maps in two dimensions when the coordinates exist in three dimensions. Coordinate System When parameters of a projection are assigned specific values, they become a coordinate system. A coordinate system is a collection of parameters that describe coordinates, one of which is a projection. Envinsa Location Platform 4.0 2006 MapInfo Corporation. All rights reserved. 5 Envinsa40_CoordSysTrans_Service.pdf
Coordinate System Transform Service Reference Coordinate System Transform Functionality Chapter 1: Introduction The Coordinate System Transform Service performs a single task: transforming geometries from one coordinate reference system to a different coordinate reference system. The following section shows you how to use this capability: Changing from One Coordinate System to Another in Chapter 2 on page 8 This section explains how to transform a geometry from a current coordinate system to a new coordinate system, and illustrates how multiple transformations can be performed in a single request. Envinsa Location Platform 4.0 2006 MapInfo Corporation. All rights reserved. 6 Envinsa40_CoordSysTrans_Service.pdf
Coordinate System Transform Capabilities 2 Before you create an application that uses the Coordinate System Transform Service functionality, it s helpful to understand basic concepts and how these concepts are implemented in this service. This section describes how to develop and use the capabilities of the Coordinate System Transform Service. The purpose of the Coordinate System Transform Service is to transform the coordinates of one or more geometries to a different coordinate reference system. Note that multiple transformations can be performed in a single request. In this section: Changing from One Coordinate System to Another....... 8
Coordinate System Transform Service Reference Chapter 2: Coordinate System Transform Capabilities Changing from One Coordinate System to Another A Coordinate System Transform request transforms the coordinates of a GML geometry from one coordinate reference system to another. You must specify the source coordinate reference system, target coordinate reference system, and the required details regarding the geometries that you wish to transform. The response returns the target coordinate reference system and the transformed geometries. The Coordinate System Transform Service is able to transform multiple geometries in a single request. Rules for Specifying the Coordinate Systems The Coordinate System Transform Service uses the spatial reference system identifier to specify the source and target coordinate systems for the transformation. The geometries in the request may have their own spatial reference system specified. The following rules are used to identify the source reference system of the geometries: If the position in the geometry has a spatial reference system specified (for example, EPSG:4326), this reference system is used as the source for the coordinates for that geometry. If the position in the geometry does not specify a spatial reference system, and the geometry specifies a reference system, this reference system is used for that geometry. If both the position and the geometry have no spatial reference system specified, the source reference system defined for the request is used. Therefore the priority for specifying the source reference system in the request is: 1. Spatial reference system in the position of the geometry 2. Spatial reference system in the geometry 3. Source coordinate reference system in the request. Transforming Multiple Geometries When specifying multiple geometries within a single request in XML, the order of these geometries is important. The geometries must be specified in the order in which the geometry types are listed here: Circle By Center Point Circular Arc Ellipse Envelope Line String Linear Ring Multi Polygon Polygon Point Note: The order in which multiple geometries are specified is important only for a request coded in XML directly. The order is not important in Java or.net code. Envinsa Location Platform 4.0 2006 MapInfo Corporation. All rights reserved. 8 Envinsa40_CoordSysTrans_Service.pdf
Coordinate System Transform Service Reference Chapter 2: Coordinate System Transform Capabilities Inputs and Behaviors The request contains the following information: Input Required Description Source Coordinate System Yes The source coordinate reference system of the geometries. This source coordinate reference system is used only if the spatial reference system is not specified in both the position and the geometry. For more information see Rules for Specifying the Coordinate Systems on page 8. Target Coordinate System Yes The new coordinate reference system. Geometry Yes The geometries to be transformed. Each of the geometries can specify the source coordinate reference system to be used for the transformation. Output The response contains the following pieces of information: Output Target Coordinate System Geometry Description The new coordinate reference system for all the transformed geometries in the response. The transformed geometries with the new coordinate reference system. These geometries are returned in the same order as was specified in the request. XML Sample The following example describes a request to transform two points and a circle from the EPSG:4326 (Lat/Long WGS84) reference system to the EPSG:32617 (UTM/WGS84 Zone17) reference system. The srsname attribute is used to specify the source and target coordinate systems for the start and end transformations. Note that the order in which the geometries are specified is important. <_RequestParameters xsi:type="ns3:coordsysrequesttype" xmlns:ns3="http:// www.mapinfo.com/xls"> <ns3:sourcecoordsys srsname="epsg:4326"/> <ns3:targetcoordsys srsname="epsg:32617"/> <ns3:geometry> <ns4:circlebycenterpoint interpolation="circulararccenterpointwithradius" numarc="1" xmlns:ns4="http://www.opengis.net/gml"> <ns4:pos dimension="2">-78.8324 42.8477</ns4:pos> <ns4:radius uom="m">200.0</ns4:radius> </ns4:circlebycenterpoint> <ns5:point xmlns:ns5="http://www.opengis.net/gml"> <ns5:pos dimension="2">-78.8324 42.8477</ns5:pos> </ns5:point> <ns6:point srsname="epsg:4326" xmlns:ns6="http://www.opengis.net/gml"> <ns6:pos dimension="2">-78.8324 42.8477</ns6:pos> </ns6:point> </ns3:geometry> </_RequestParameters> Envinsa Location Platform 4.0 2006 MapInfo Corporation. All rights reserved. 9 Envinsa40_CoordSysTrans_Service.pdf
Coordinate System Transform Service Reference Chapter 2: Coordinate System Transform Capabilities Envinsa Location Platform 4.0 2006 MapInfo Corporation. All rights reserved. 10 Envinsa40_CoordSysTrans_Service.pdf