Talk:OSMtiledownloader

From OpenStreetMap Wiki
Jump to navigation Jump to search

Bugs

Version 0.1

  • small improvements (remember index for cmbTileServer, m_TileTable.Clear() on cmbZoom_SelectedIndexChanged() ) at http://www.moonbase.sk/OSMtracker/Form1.vb --Dido 20:55, 29 September 2007 (BST)
    • you're complete right. i just released it as soon as it was functional. no real testing done. --Rubke 11:23, 30 September 2007 (BST)

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

  • At the moment, it is not possible to use the Manual mode, by filling the URL paste box or entering the Lat and Log data. Setup and Download are grayed out. By pressing the "Load GPX" button, they are go active, but no downloading is done. It states "Tile download done". What a pitty! --Konus 13:14, 30 November 2008 (UTC)
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)
  • I have some problems, using the provided *.pgw world-file. Location and scaling seems to be wrong if I am using them for displaying the tiles in "Autodesk Map 3D Version 2009". --Konus 12:50, 1 December 2008 (UTC)
    • Update after extracting the Data from the *.map file to calculate a new world-file, I think that the world-file generated with the programm is not correct.

Wish list

  • Please could you update the URL drop down to include the up to date Osmarender url: http://tah.openstreetmap.org/Tiles/tile.php/ Daveemtb 14:13, 10 May 2008 (UTC)
  • Please could you make the GPX input a little more tolerant - it claims there's no track in GPX files made from some programs. Maybe it could just look for the <trkpt...></trkpt> parts of the file and ignore the rest? Thanks, Daveemtb 14:13, 10 May 2008 (UTC)
  • please make it possible to use http-proxies.
good point, will look into it --Rubke 12:36, 17 October 2007 (BST)
  • I would like to the coordinates of a Geocaching Pocket Query, or a Geocaching GPX File to get a Map of the Cache Area[Udo]
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)
  • start img2ozfx after download has finished.[Udo]
also easy possible, will be in next version --Rubke 12:36, 17 October 2007 (BST)
  • Generate OZF file which uses tiles from different zoom levels (eg 100%:17, 50%:16, 25%:15, 12.5%:14 ...) instead of down-sampled only highest zoom (17) tiles. Requires a bit more source tiles, but would result in better zooming. Unfortunately ozf format is neither open nor well specified --Stefanb 14:51, 18 October 2007 (BST)
not a problem if ozf was a open format (why isn't it ?) --Rubke 11:47, 19 October 2007 (BST)
  • Use your phantastic Realtime Renderer(I've only seen this screeshot, but i looks great!) to create a map with variable size. You have to download less data from the server (I hope) and you are able to create a map with the zoom level and size you like to.--Udo 20:17, 19 October 2007 (BST)
unfortunately, my time is limited to develop all the ideas.. --Rubke 15:32, 24 October 2007 (BST)
  • Download tiles in zoomlevels lower than 13. --Aja 08:37, 11 May 2008 (UTC)
  • I'm trying to download tiles from a source that stores them in .jpg format & the system will not download them. .png format seems to work perfectly though. --Shane.williams 18:26, 4 May 2010 (UTC)