| Programming with JViews Maps > Creating a Map Application Using the API > Handling Spatial Reference Systems > Converting Between Two Spatial Reference Systems |
Converting Between Two Spatial Reference Systems |
INDEX
PREVIOUS
NEXT
|
The conversion between two Spatial Reference Systems (SRS) is performed by a coordinate transformation, that is, a mathematical transformation or a chain of mathematical transformations.
For example, when superimposing Global Positioning System (GPS) points (expressed in longitude and latitude) on a state map (where coordinates are expressed in meters, in UTM projection), the GPS coordinates are expressed in a geographic coordinate system, while the state map coordinates are in a projected coordinate system. Once the SRS for each data source is known, the JViews Maps package is able to construct a mathematical transformation to convert from one coordinate system to another.
SRS and coordinate transformations are mainly used for two purposes.
The first one is to render the pipeline of the reader framework, and the main steps are:
setSourceCoordinateSystem() method. The SRS of source data is stored in map features returned by the iterator.
The second one is to position free data, (without the renderers, you create the coordinate of the graphic object yourself), and the main steps are nearly the same:
The following packages define some useful SRS to be used with maps:
ilog.views.maps.srs.coordsys
ilog.views.maps.srs.coordtrans
ilog.views.maps.srs.wkt
ilog.views.maps.projection
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |