<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19328"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial>if you want reproject feature coordinates from EPSG:4326
(WGS84) to other projection than EPSG:900913
(SphericalMercator),</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial>then you have to add the proj4js javascript library to your
application.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial>By the way: How did you manage to show a tif in your
browser?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=734235521-02112012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Riggi
Valerio<BR><B>Gesendet:</B> Freitag, 2. November 2012 21:56<BR><B>An:</B>
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users] How To:
Positionate WGS84 tracks intoGauss-Boaga Map<BR></FONT><BR></DIV>
<DIV></DIV>Hi, I'm tring to track some gps data into a Gauss-Boaga map, but I
don't manage to put the track on the right place, how can I do?<BR><BR><B>This
is the Track layer</B>:<BR>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><BR><B>And this is the Gauss-Boaga</B><B>
Projection</B>:<BR> var options = {<BR>
isBaseLayer: true,<BR> maxResolution:
'0.84686783985005',<BR> strategies: [new
OpenLayers.Strategy.Fixed()],<BR> displayInLayerSwitcher:
true,<BR> size: new OpenLayers.Size(8745,
6696),<BR> numZoomLevels: 20<BR>
};<BR><BR> var gauss = new
OpenLayers.Layer.Image(<BR>
'Gauss-Boaga',<BR>
'CTR588140.tif',<BR>
new OpenLayers.Bounds(2556348.9846319141797721, 4227924.4383069388568401,
2563754.8438914027065039,4233595.0653625745326281),
<?php //left,bottom,right,top
?><BR>
new OpenLayers.Size(8745,
6696),<BR>
options<BR>
);<BR></BODY></HTML>