<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello List,</div>

<div> </div>

<div>i'm trying to export my feature layer as gpx file. On one Side it seems to work, because i get something like this:</div>

<div><?xml version="1.0"?><br/>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" creator="OpenLayers" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"><br/>
    <gpx:trk xmlns:gpx="http://www.topografix.com/GPX/1/1"><br/>
        <gpx:name>OpenLayers.Feature.Vector_3254</gpx:name><br/>
        <gpx:desc>No description available</gpx:desc><br/>
        <gpx:trkseg><br/>
            <gpx:trkpt lon="7.406179800059247" lat="51.93181443052624"/><br/>
            <gpx:trkpt lon="7.405849584041292" lat="51.93169308966569"/><br/>
            <gpx:trkpt lon="7.402611804857786" lat="51.9305432307448"/><br/>
            <gpx:trkpt lon="7.4024607964425595" lat="51.93048265696835"/><br/>
        </gpx:trkseg></div>

<div> </div>

<div>On the other side, this track doesn't show up when i load it into qgis. Is this a version conflict? When i delete the "gpx:" everywhere the gpx shows up in qgis. But both are valid xml's.</div>

<div> </div>

<div> </div>

<div>The second thing i'm facing at the moment is how to download the gpx file on the client side after it was generated. Has anyone already a solution for this? I tried it the following way:</div>

<div> </div>

<div>onDownloadGPXClick: function(grid, view, rowIndex, colIndex ){<br/>
        var routingLayer = this.getMappanel().map.getLayersByName(Constants.routingLayer)[0];<br/>
        var features = routingLayer.features;<br/>
        var format = new OpenLayers.Format.GPX({<br/>
            internalProjection: this.getMappanel().map.baseLayer.projection,<br/>
            externalProjection: new OpenLayers.Projection("EPSG:4326")<br/>
        });<br/>
        gpx = format.write(features);<br/>
        var a = document.createElement('a');<br/>
        a.href = 'data:application/gpx+xml;base64;' + base64.encode(gpx);<br/>
        a.download = 'gpx-export.gpx';<br/>
        return window.open(a);<br/>
    },</div>

<div> </div>

<div> </div>

<div>Thanks for any help</div>

<div>Christian</div></div></body></html>