OpenLayers OpenLayers

Ticket #857 (closed feature: fixed)

Opened 1 year ago

Last modified 1 year ago

coordinate system transformations

Reported by: tschaub Assigned to:
Priority: minor Milestone: 2.6 Release
Component: general Version: 2.4
Keywords: Cc:
State:

Description

The idea of client-side coordinate system transformations (in OpenLayers) has been discussed occasionally. In case it is decided that it is a good idea, I'm creating a patch for a suggested method of adding this functionality.

Attachments

proj.patch (11.6 kB) - added by tschaub on 07/23/07 18:55:42.
suggested structure for adding coordinate transformation functionality

Change History

07/23/07 18:55:42 changed by tschaub

  • attachment proj.patch added.

suggested structure for adding coordinate transformation functionality

07/23/07 19:00:23 changed by tschaub

Using the above patch, you do transformations like so:

var point = new OpenLayers.Geometry.Point(-100, 45);
var point_merc = OpenLayers.Projection.transform(point, "epsg:4326", "epsg:54004");

// or 

var feature = new OpenLayers.Feature.Vector(point);
var feature_merc = OpenLayers.Projection.transform(feature, "epsg:4326", "epsg:54004");

09/28/07 17:22:27 changed by madair

(In [4572]) initial implementation of Proj4js. (See #857)

10/12/07 23:41:13 changed by crschmidt

  • milestone set to 2.6 Release.

12/15/07 09:21:13 changed by crschmidt

  • status changed from new to closed.
  • state changed.
  • resolution set to fixed.

this has been refactored, and some bits of it have already been committed. This ticket is now complete.