[OpenLayers-Dev] v2.11 = 48.501558 , v2.12 = 48.50155799999999

midi info at digitale-wegeverwaltung.de
Wed Aug 22 06:21:32 PDT 2012


Hello group, 

first of all, thanks to all devs for the excellent work.

We have a very large GIS App developed with 2.10 / 2.11.
The UI was made with jQuery 1.6.1. 

No MapServer,GeoServer,WMS,WFS ... only xyz-Tiles and a Vector-Layer.
The Vector Layer is large but only lines and points.

After switch to 2.12 everthing works fine, 
but in the result of

new OpenLayers.Format.WKT	( myobj ).write ( myfeatures , true );
new OpenLayers.Format.KML	( myobj ).write ( myfeatures , true );
new OpenLayers.Format.GML.v2	( myobj ).write ( myfeatures , true );
new OpenLayers.Format.GML.v3	( myobj ).write ( myfeatures , true );
new OpenLayers.Format.GeoJSON	( myobj ).write ( myfeatures , true );
new OpenLayers.Format.OSM	( myobj ).write ( myfeatures , true );
new OpenLayers.Format.GPX	( myobj ).write ( myfeatures , true );

myobj = {'internalProjection': map.baseLayer.projection,
	'externalProjection': new OpenLayers.Projection("EPSG:4326");};


every 'lat' Value has 14 decimals (48.50155799999999) 
every 'lng' Value is Ok with 6 decimals


switching back to 2.11 (except GPX write, which doest not exist in 2.11)

every 'lat' value has 6 decimals.
every 'lng' value has 6 decimals.


why has only the 'lat' value 14 decimals and the 'lng' 6 decimals ?
if there rounding problems this should be both in 'lat' and 'lng'.


any ideas ?




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/v2-11-48-501558-v2-12-48-50155799999999-tp4997040.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list