On Fri, Jan 14, 2011 at 2:27 PM, ClemensRudert <[email protected]> wrote:
>
> Thanks for the hint. The thing with the tool is a good one. I will try
> that.
> The other one you said (EPSG:900913): for that i must transform my data in
> this projection? (if yes this is not an good idea, because the only data in
> an other projection is the OSM-Data)
>
WMS servers like MapServer or GeoServer can do such reprojection, so you
don't have to modify your data. This has simply an impact on the WMS
performance. With vector data, it shouldn't be an issue. For raster data,
you can encounter some vizualization issue (since the swiss coordinate
system is "cylindrical oblique")
>
> Download the data is the last way i will try. I hope there is an other way.
>
> I found a piece of code for transformation:
>
> map.setCenter(new OpenLayers.LonLat(13.41,52.52) // Center of the map
> .transform(
> new OpenLayers.Projection("EPSG:4326"), // transform from WGS
> 1984
> new OpenLayers.Projection("EPSG:900913") // to Spherical
> Mercator Projection
>
> Is it not possible to use this way also for the transformation of the
> OSM-Layer?
>
This piece of code is for the transformation of vector data. This is not
possible for raster data. I have seen in your code that you use WMS, so this
wouldn't apply. But, if you want to display vector data, then you can
reproject them on the fly with OpenLayers and present them together with
OSM. Be aware that OpenLayers can't represent a large amount of vector data,
for performance reason (particularly in IE)
>
> Thanks
> Clemens Rudert
>
> PS: Iam realy happy that i get such a good and professionel help from you
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Problem-using-openstreetmap-and-other-layers-tp5921521p5921660.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
--
Welcome to my world: http://www.cedricmoullet.com/
My Linked In profile: http://www.linkedin.com/in/cedricmoullet
Twitter: http://twitter.com/cedricmoullet
Home sweet home:
http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users