How to change 0,360 WKT string to -180,180?

المشرف العام

Administrator
طاقم الإدارة
I'm reading POLYGON WKT strings using OpenLayers.Format.WKT().read(). The polygons use 0,360 longitudes but my map is -180,180. When I display the polygons on the map they are displayed outside of the map. How can I display them on their correct location? I tried OpenLayers transforms and Proj4js transforms (plus defining the 0,360 CRS using +lon_wrap=180) but nothing seems to work! Help would be appreciated ;-)



أكثر...
 
أعلى