[OpenLayers-Users] OpenLayers.Projection and transform of features

Arnd Wippermann arnd.wippermann at web.de
Tue Jun 24 20:34:24 EDT 2008


Hi,

Some digging into the code shows this:

Proj4js added to each transformed point the property 'transformed=true'.

  (1) id - OpenLayers.Geometry.LineString_2418
  ################D (Level:1) components                     object
####################
    ##############D (Level:2) 0                              object
####################
    (2) id - OpenLayers.Geometry.Point_2277
    (2) x - 796329.5433605171
    (2) y - 6665813.389469861
      (3) parent - #object#
      ############ Level > maxLevel= 2 ###################
    (2) transformed - true
      (3) bounds - #object#
      ############ Level > maxLevel= 2 ###################
    (2) CLASS_NAME - OpenLayers.Geometry.Point
    ######################################

This is the reason for not transform the geometry a second time (part from
pro4js.js):

if (point.transformed) {
	this.log("point already transformed");
          return;
}

This means, features added to the map with proj4js in use cann't exported
with proj4js to an new projection.

Have someone an idea how to set the property transformed to false. Or where
this function features.geometry.transform is declared?

Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/





More information about the Users mailing list