[OpenLayers-Users] point.transform FAIL
Ivan Grcic
ivan.grcic at geofoto.hr
Wed Aug 5 17:05:13 EDT 2009
hi,
i remembered i had some little problems with proj4js.. i just remember
i had to include EPSG:26915 definition in seperate file in
proj4js\lib\defs dir, or in the code like:
Proj4js.defs["EPSG:32632"]="+title=UTM 32N +proj=utm +zone=32
+ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
and then call new Proj4js.Proj('EPSG:32632'); before using it.
and it worked fine then
hope it helps,
cheers
On 8/5/09, Greg Corradini <gregcorradini at gmail.com> wrote:
> Hello,
> The following code works with other EPSG mercator projections. But I
> can't get it to transform my LonLat point into EPSG:26915. This made
> me think I didn't set up the proj4 file correctly -- maybe when I call
> "new OpenLayers.Projection("EPSG:26915")" it can't find it. However,
> my displayProjection is set using the same function to EPSG:26915 and
> all my WMS layers show up correctly. Any ideas? FireBug confirms that
> the function point.transform returns the exact same LonLat I passed in
> -- I end up south of Ghana in the ocean. Oh No!
>
> Thanks for your thoughts
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Ivan Grcic
More information about the Users
mailing list