[OpenLayers-Users] help -re images and reprojections

chris Wild chrismwild at gmail.com
Sun Mar 22 23:51:15 EDT 2009


Hi all,
Thanks for the recent discussions on reprojections, they have helped clarify
the process.
Working fine for features, but Im struggling with an image using OpenLayers.
 When I load the the image(projected EPSG 27200)as a coverage
(using raster image with spatial data file) it is only visible in the demo
if I leave the EPSG:4326 default settings.
Thats fine the image displays appears in the 27200 shape and reads out
co-ordinates in EPSG 27200.
 However I am unable to get other layers (either 4326 or 27200)to display
over it.
They show up in the layer switcher but not on screen.
This is the html from the demo.
                *var bounds = new OpenLayers.Bounds(
                    2629421.80675075, 6192776.734840927,
                    2633541.29183475, 6195367.7231969265
                );
                var options = {
                    controls: [],
                    maxExtent: bounds,
                    maxResolution: 16.09173860937517,
                    projection: "EPSG:4326",
                    units: 'degrees'
                };
                map = new OpenLayers.Map('map', options);

                // setup tiled layer
                tiled = new OpenLayers.Layer.WMS(
                    "topp:RectifyTRC_App_NZmg_1 - Tiled", **
                    {
                        width: '800',
                        srs: 'EPSG:4326',
                        layers: 'topp:RectifyTRC_App_NZmg_1',
                        height: '472',
                        styles: '',
                        format: format,
                        tiled: 'true',
                        tilesOrigin : "2629421.80675075,6192776.734840927"
                    },
                    {buffer: 0}
                );*

Im not understanding,  should I be displaying  4326 or 27200 features over
this image?
Any help much appreciated.
Regards
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090323/05575854/attachment.html


More information about the Users mailing list