[OpenLayers-Users] Help w/ WMS onto google spherical mercator
Richard Duivenvoorde
rdmailings at duif.net
Wed Nov 19 06:52:05 EST 2008
Another option is to add the parameters yourself to the epsg file
(see
http://www.spatialreference.org/ref/user/popular-visualisation-crs-mercator/proj4/
for parameters).
E.g. on my ms4w install, in the file:
C:\ms4w\proj\nad\epsg
I added:
# SpericalMercator projection
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>
Regards,
Richard Duivenvoorde
I think this will become(?? anybody an idea here why these definitions
(from proj) are different?):
<3785> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs <>
ben wyss wrote:
> I was wondering if anyone can help me overly a WMS onto google spherical
> mercator map? The error I get is:
>
> No options found in 'init' file. My map file for the WMS has the
> projection set:
>
>
>
> PROJECTION
>
> "init=epsg:4326"
>
> END
>
> But if I change this to "init=epsg:900913", ( as I have seen in some
> documentation) It sais
>
> "no options found in 'init' file"
>
> I have my .html file set to the OpenLayers Spherical Mercator example.
>
> Thanks, Ben
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list