Transforming OpenLayers.Geometry

المشرف العام

Administrator
طاقم الإدارة
I have Openlayer.Geometry objects (point, multipoints, polygons etc) with longitude and latitude coordinates for WGS-84 ellipsoid Earth model (for OpenStreetMap). These objects are properly displayed on the map. I also have an image of the area, with arbitrary projection, and I have the longitudes and latitudes of the Geometry objects for the image. My question is as follows:

1) Is there an easy and straightforward way to transform the co-ordinates of the Geometry objects to the co-ordinates in the image? I really don't want to create two Geometry objects, one for the map and another for the image. I would like to use the same Geometry object from the map and display it on the image. Once again, I do have the map AND image coordinates for each Geometry object.



أكثر...
 
أعلى