<div>Thanks Toni for your help, its great to get it when your struggling.</div>
<div>The demo that works put the bounds and tile origin in 27200. Which makes the image shape and units appear as i want them.</div>
<div>The map projection is 4326, so I guess it is reprojecting the image </div>
<div>Have followed your suggestions and its still will not display overlays. </div>
<div> </div>
<div>Regards</div>
<div>Chris</div>
<div> </div>
<div class="gmail_quote">On Tue, Mar 24, 2009 at 5:16 AM, toni hernandez <span dir="ltr"><<a href="mailto:tonidelacalle@gmail.com">tonidelacalle@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hi,<br>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.<br>
Try defining bounds and tilesOrigin with 4326.<br><br>chris Wild escribió:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">Hi all,<br>Thanks for the recent discussions on reprojections, they have helped clarify the process.<br>Working fine for features, but Im struggling with an image using OpenLayers.<br> When I load the the image(projected EPSG 27200)as a coverage<br>
(using raster image with spatial data file) it is only visible in the demo if I leave the EPSG:4326 default settings.<br>Thats fine the image displays appears in the 27200 shape and reads out co-ordinates in EPSG 27200.<br>
However I am unable to get other layers (either 4326 or 27200)to display over it.<br>They show up in the layer switcher but not on screen.<br>This is the html from the demo.<br> /var bounds = new OpenLayers.Bounds(<br>
2629421.80675075, 6192776.734840927,<br> 2633541.29183475, 6195367.7231969265<br> );<br> var options = {<br> controls: [],<br> maxExtent: bounds,<br>
maxResolution: 16.09173860937517,<br> projection: "EPSG:4326",<br> units: 'degrees'<br> };<br> map = new OpenLayers.Map('map', options);<br>
// setup tiled layer<br> tiled = new OpenLayers.Layer.WMS(<br> "topp:RectifyTRC_App_NZmg_1 - Tiled", //<br> {<br> width: '800',<br>
srs: 'EPSG:4326',<br> layers: 'topp:RectifyTRC_App_NZmg_1',<br> height: '472',<br> styles: '',<br> format: format,<br>
tiled: 'true',<br> tilesOrigin : "2629421.80675075,6192776.734840927"<br> },<br> {buffer: 0}<br> );/<br> Im not understanding, should I be displaying 4326 or 27200 features over this image?<br>
Any help much appreciated.<br>Regards<br>Chris<br></div></div> ------------------------------------------------------------------------<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br> <br></blockquote><br></blockquote></div><br>