[OpenLayers-Users] Transform Points Help
Gabriel Vatin
gabriel.vatin at mines-paristech.fr
Wed Aug 1 05:07:26 PDT 2012
Hi,
Maybe the EPSG you're using are not recognized by OpenLayers ? So maybe
you'll need to download proj4js library and add the missing projection,
by using something like that :
http://spatialreference.org/ref/epsg/4283/proj4/
I've never tried it, let me know if it's ok.
And do you want to convert 4283 to 4326, or to 4269 ?
Gabriel
Le 01/08/2012 13:42, Riaan Lombaard a écrit :
>
> Hi,
>
> I need some transformation advice.
>
> Running this script in Firebug.
>
> "
>
> var point = new OpenLayers.Geometry.Point(128.627103622948,
> -15.8249150838119);
> var point_transformed = point.transform(new
> OpenLayers.Projection("EPSG:4283"), new
> OpenLayers.Projection("EPSG:4269"));
>
> console.log(point);
> console.log(point_transformed)
>
> "
>
> What happens is the data I am getting is from `GDA94 (SRID 4283)` and
> I need convert it to ` WGS84 (SRID 4326)` for the map base layer I am
> using ` http://vmap0.tiles.osgeo.org/wms/vmap0`
>
> But looking at the example it does not seem to convert anything, the
> x,y stay's the same?
>
> What am I missing?
>
> Riaan
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120801/968fe854/attachment.html>
More information about the Users
mailing list