[OpenLayers-Users] help -re images and reprojections

toni hernandez tonidelacalle at gmail.com
Mon Mar 23 12:16:31 EDT 2009


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
>   




More information about the Users mailing list