Package Details: geo-osm-tiles 0.04-3

Git Clone URL: https://aur.archlinux.org/geo-osm-tiles.git (read-only, click to copy)
Package Base: geo-osm-tiles
Description: Utility that enables download of OSM tiles (downloadosmtiles.pl)
Upstream URL: https://metacpan.org/release/ROTKRAUT/Geo-OSM-Tiles-0.04/view/downloadosmtiles.pl
Licenses: perl
Submitter: alcubierre-drive
Maintainer: alcubierre-drive
Last Packager: alcubierre-drive
Votes: 1
Popularity: 0.006326
First Submitted: 2023-02-21 10:10 (UTC)
Last Updated: 2024-09-10 14:05 (UTC)

Latest Comments

m040601 commented on 2024-09-10 15:07 (UTC)

Ahh... so it's a server problem, with the defaults. Man page:

   "--baseurl=url"
       The base URL of the server to download the tiles from.

       Default: <http://tile.openstreetmap.org> (This is the base URL for the
       Mapnik tiles.)

So this server "tile.openstreetmap.org" is not valid anymore.

I also tested with, --baseurl='http://tile.opencyclemap.org/cycle' . It works

alcubierre-drive commented on 2024-09-10 13:50 (UTC)

I think the "forbidden" error message comes from the server. I do not have problems downloading tiles using e.g. "downloadosmtiles.pl --link='http://www.opencyclemap.org/?lat=42.8&lon=0.1&zoom=10' --baseurl='http://tile.opencyclemap.org/cycle' --zoom=14". I will fix Issue 2.

m040601 commented on 2024-09-05 02:15 (UTC) (edited on 2024-09-05 02:20 (UTC) by m040601)

Nice simple cli based tool. I love these simple OSM interfaces. Thanks for the work on the PKGBUILD.

It is very old, and "apparently" hasnt seen any updates in 14 years lol !!!

https://metacpan.org/release/ROTKRAUT/Geo-OSM-Tiles-0.04/view/downloadosmtiles.pl

       Name            Documentation     Size       Last Modified
META.yml                                823    15 May 2010 12:48:38 UTC
lib                                            04 Jun 2016 23:42:10 UTC
SIGNATURE                               1.36K  15 May 2010 12:48:45 UTC
Makefile.PL                             829    13 May 2010 15:25:13 UTC
MANIFEST                                306    15 May 2010 12:48:38 UTC
README                                  1.84K  15 May 2010 12:40:33 UTC
TODO                                    548    13 May 2010 09:56:08 UTC
t                                              04 Jun 2016 23:42:10 UTC
Changes                                 1.11K  15 May 2010 12:38:07 UTC
downloadosmtiles.pl downloadosmtiles.pl 11.02K 15 May 2010 12:27:35 UTC

But it is perl, and it should be working, I guess.

I have 2 ISSUES.

ISSUE 1: not working today, error message "forbidden"

Archlinux has today updated Perl to 5.40. I removed and reinstalled "geo-osm-tiles" to make it rebuild with the latest Perl. The man page says,

SYNOPSIS

  downloadosmtiles.pl --lat=49.5611:49.6282 --lon=10.951:11.0574 --zoom=13:14
  downloadosmtiles.pl --link='http://www.openstreetmap.org/?lat=-23.5872&lon=..........
  downloadosmtiles.pl --loadtilelist=filename

But then,

$ downloadosmtiles.pl --lat=49.5611:49.6282 --lon=10.951:11.0574 --zoom=13:14

Schedule 9 (3 x 3) tiles for zoom level 13 for download ...
Schedule 36 (6 x 6) tiles for zoom level 14 for download ...
Download 9 tiles for zoom level 13 ...
403 Forbidden at /usr/bin/site_perl/downloadosmtiles.pl line 227.

I have no idea. This is that line 227,

225     mkpath(dirname($fname));
226     my $res = $lwpua->get($url, ':content_file' => $fname);
227     die $res->status_line
228 >       unless $res->is_success;

Is it a problem with the code itself ? Some incompatibility with modern Perl ? Is it working on your system ?

ISSUE 2: the location of the script in "/usr/bin"

$ pacman -Ql geo-osm-tiles

geo-osm-tiles /usr/
geo-osm-tiles /usr/bin/
geo-osm-tiles /usr/bin/site_perl/
geo-osm-tiles /usr/bin/site_perl/downloadosmtiles.pl
.......
......
geo-osm-tiles /usr/lib/perl5/5.40/site_perl/auto/Geo/.... lotz of stuff
........
geo-osm-tiles /usr/share/man/man3/.... man pages
geo-osm-tiles /usr/share/perl5/site_perl/Geo/........ pm files

I am no AUR packaging or Perl expert. But I have used hundreds of perl tools from the AUR. And I've never seen any create a folder "/usr/bin/site_perl" and install things to

/usr/bin/site_perl/...xyz.pl... 

Shouldnt it be "/usr/bin/downloadosmtiles.pl" or even better "/usr/bin/downloadosmtiles" without the ".pl" according to the AUR/Arch guidelines ?

Thanks in advance.

alcubierre-drive commented on 2024-06-17 16:37 (UTC)

Thanks. Updated the dependencies accordingly.

schlumpf commented on 2024-06-16 15:04 (UTC)

There is a missing dependency: perl-yaml is needed to run downloadosmtiles.pl