[OpenLayers-Users] help -re images and reprojections

chris Wild chrismwild at gmail.com
Mon Mar 23 15:53:42 EDT 2009


Thanks Toni for your help, its great to get it when your struggling.
The demo that works put the bounds and tile origin in 27200. Which makes the
image shape and units appear as i want them.
The map projection is 4326, so I guess it is reprojecting the image
Have followed your suggestions and its still will not display overlays.

Regards
Chris

On Tue, Mar 24, 2009 at 5:16 AM, toni hernandez <tonidelacalle at gmail.com>wrote:

> hi,
> I am not an expert but I can't see any refference to the 27200 system in
> your code. So you should be displaing 4326 coordinates.
> Try defining bounds and tilesOrigin with 4326.
>
> chris Wild escribió:
>
>>  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
>>  ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090324/4cc6117a/attachment.html


More information about the Users mailing list