[OpenLayers-Users] Reprojection

Tim Schaub tschaub at opengeo.org
Thu Oct 30 14:05:03 EDT 2008


Hey-

Lehtonen, Mika wrote:
> Never mind,
> it is possible with proj4js, but not with just OL? Just had some 
> configuration problems. It works now.

You need to include definitions for whatever projections you want to use 
with your OL app (definitions from proj4js).

Exceptions to this are EPSG:4326 and EPSG:900913.  We provide transforms 
for those.

Tim

> 
> sorry,
> mika
> 
> Lehtonen, Mika kirjoitti:
>> Hi,
>>
>> is it possible to reproject polygon geometry from epsg:900913 to epsg:2393?
>>
>> I tried to do it with this without succes:
>> feature.geometry.transform(new OpenLayers.Projection("EPSG:900913"), new 
>> OpenLayers.Projection("EPSG:2393"));
>>
>> I downloaded proj4js.js, merc.js, tmerc.js and epsg900319.js + I created 
>> epsg2393.js. With or without these libraries, reprojection doesn't take 
>> place. OL is 2.7.
>>
>> - mika -
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>   
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Users mailing list