Talk:OSMtiledownloader

From OpenStreetMap Wiki
Jump to: navigation, search

Contents

Bugs

Version 0.1

Version 0.3

You should use Path.DirectorySeparatorChar or Path.Combine(): you have this bug both in the tile download and when you save the config file. -Lupus 07 February 2008

DOWN UNDER BUG? - I am not sure if I am the first one using this program on south hemisphere, but it seems there is a bug in OziExplorer .map file creation. Although latitude is given with negative in front, it is necessary to change N to S in map limits description. Without it, I was steadily appearing in China instead of Australia. It would be nice if you can fix it! --Zlatni 15:21, 8 April 2008 (BST)

Problem importing GPX created by odgps (e.g. http://www.openstreetmap.org/trace/94318/data) - As a workaround you can change in ``<gpx xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" xmlns="http://www.topografix.com/GPX/1/1" ..´´ all 1/1 into 1/0 and remove `` xmlns=""´´ from ``<trk xmlns="">´´. --Wieland 13:27, 11 April 2008 (BST)

If you want to use the Tile at home server, which is in the dropdown list as "http://tah.dev.openstreetmap.org/Tiles/tile/" you have to remove the "dev.". So "http://tah.openstreetmap.org/Tiles/tile/" is working for me. --Wieland 07:38, 7 May 2008 (UTC)


Suggested patch to make it not care whether it is reading GPX 1.0 or 1.1, removes use of XmlNamespaceManager and replaces SelectSingleNode/SelectNodes with GetElementsByTagName:

    Private Sub Analyze()

        m_TileTable.Clear()

        ' process GPX
        Dim oGPX As New XmlDocument()
        If File.Exists(lblGPXfilename.Text) Then
            oGPX.Load(lblGPXfilename.Text)

            Dim Lat As Single, Lon As Single
            Dim BoundingBoxMethod As Boolean = rbutBoundingBox.Checked
            Dim zoom As Long = Long.Parse(cmbZoom.Text)
            Dim p As Point

            MaxLat = -180 : MinLat = 180
            MaxLon = -180 : MinLon = 180

            Dim oTrackPoints As XmlNodeList = oGPX.GetElementsByTagName("trkpt")
            If oTrackPoints.Count > 0 Then
                For Each oTrkPnt As XmlNode In oTrackPoints
                    Lat = Single.Parse(oTrkPnt.Attributes("lat").InnerText, USACultureInfo)
                    Lon = Single.Parse(oTrkPnt.Attributes("lon").InnerText, USACultureInfo)
                    If Lat > MaxLat Then MaxLat = Lat
                    If Lat < MinLat Then MinLat = Lat
                    If Lon > MaxLon Then MaxLon = Lon
                    If Lon < MinLon Then MinLon = Lon

                    p = CalcTileXY(Lat, Lon, zoom)
                    'txtDebug.AppendText(p.ToString & vbCrLf)

                    If Not m_TileTable.Contains(p) Then
                        m_TileTable.Add(p, p)
                    End If
                Next

                txtMinLat.Text = MinLat.ToString(USACultureInfo)
                (rest of Analyze is not affected)

--Mark Gray 13 June 2008

A year later I tried and have the same problem. --MarcusWolschon 07:14, 19 November 2009 (UTC)
You must filter the GPX file with GPSbabel: Transform Routes -> Tracks --Tony Rotondas 11:52, 26 January 2011 (UTC)

Wish list

good point, will look into it --Rubke 12:36, 17 October 2007 (BST)
then the map is based on a waypoint i gues ? then we only need a radius/area.. is possible --Rubke 12:36, 17 October 2007 (BST)
yes, area is depending on the type of cache:
<type>Geocache|Traditional Cache</type> highest zoomlevel and about 200 m
<type>Geocache|Multi-cache</type> some need a radius up to 5 km :(
the coors look like: <bounds minlat="50.460617" minlon="6.634767" maxlat="51.171267" maxlon="7.69175" /> (the region of a PQ) that would be a nice overview in lower zoomlevel
and then up to 500 waypoints
<wpt lat="50.792833" lon="7.205383">
[...]
<type>Geocache|Traditional Cache</type>
[...]
</wpt>
If you need a PQ, I'll send you a gpx-file.
--Udo 09:20, 18 October 2007 (BST)
You can use gpsbabel to convert waypoints to tracks. Use filter.
You get only few trackpoints (as many as waypoints).
I wrote a Perl program (just a hack so far) to fill up missing points and place points left and right of your track.
Contact me for the code. --Wieland 22:40, 12 April 2008 (BST)
also easy possible, will be in next version --Rubke 12:36, 17 October 2007 (BST)
not a problem if ozf was a open format (why isn't it ?) --Rubke 11:47, 19 October 2007 (BST)
unfortunately, my time is limited to develop all the ideas.. --Rubke 15:32, 24 October 2007 (BST)
Personal tools
Namespaces
Variants
Actions
site
Toolbox