<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi, all I'm tring to <u>visualize some tracks on a Gauss-Boaga map
from a .tif image</u>, but I don't manage to set the .tif so to
visualize correctly the tracks on the map.<br>
With the tif I have also a <b>.tfw file</b> which contain this
resolutions and coordinate:<br>
0.84686783985005 <br>
0.00000000000000 <br>
0.00000000000000 <br>
-0.84686783985005 <br>
2556348.98463191420000 <br>
4233595.06536257450000 <br>
<b>My code</b><b> is:</b><br>
var mercator = new OpenLayers.Projection("EPSG:3004"); <!--
Gauss-Boaga --><br>
var geographic = new OpenLayers.Projection("EPSG:4326"); <!--
WGS84 --><br>
<br>
var gauss = new OpenLayers.Layer.Image(<br>
'Gauss-Boaga',<br>
'CTR588140.tif',<br>
new OpenLayers.Bounds(2556348.98463191420000,
4227924.438,2563754.843,
4233595.06536257450000).transform(mercator,geographic),<br>
new OpenLayers.Size(8745, 6696)<br>
);<br>
<br>
map = new OpenLayers.Map({<br>
div: "map",<br>
projection: mercator,<br>
maxExtent: new OpenLayers.Bounds(2556348.98463191420000,
4227924.438,2563754.843,
4233595.06536257450000).transform(mercator,geographic),<br>
maxResolution: 0.84686783985005,<br>
layers: [gauss,new OpenLayers.Layer.PointTrack("Tracks", {<br>
projection: geographic,<br>
strategies: [new OpenLayers.Strategy.Fixed()],<br>
protocol: new OpenLayers.Protocol.HTTP({<br>
url: "track.kml",<br>
format: new OpenLayers.Format.KML({<br>
extractTracks: true,<br>
extractStyles: true<br>
})<br>
}),<br>
dataFrom: OpenLayers.Layer.PointTrack.TARGET_NODE,<br>
styleFrom: OpenLayers.Layer.PointTrack.TARGET_NODE,<br>
eventListeners: {<br>
"beforefeaturesadded": function(e) {<br>
// group the tracks by fid and create one
track for<br>
// every fid<br>
var fid, points = [], feature;<br>
for (var i=0, len=e.features.length;
i<len; i++) {<br>
feature = e.features[i];<br>
if ((fid && feature.fid !== fid)
|| i === len-1) {<br>
this.addNodes(points, {silent:
true});<br>
points = [];<br>
} else {<br>
points.push(feature);<br>
}<br>
fid = feature.fid;<br>
}<br>
return false;<br>
}<br>
}<br>
})<br>
],center: new OpenLayers.LonLat(15.4385912418365,
38.2424157857895).transform(geographic, mercator),<br>
zoom: 15<br>
});<br>
<br>
map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
};<br>
<br>
<b>What is wrong?</b><br>
<br>
Thank's to all<br>
Valerio<br>
<br>
</body>
</html>