Talk:Boundaries.pl

From OpenStreetMap Wiki
Jump to: navigation, search

Webservice

Are there any plans to spin of a webservice e.g. areas.osm.org that would give me the right boundaries for a given region name? Would you set up an isin.osm.org services that provides an exactly view on the position of the boundaries hierachy? e.g. (54.xxx,49.yyyy) is in Germany-Mecklenburg Vorpommern-Rostock-Lüttenklein? --!i! 06:05, 30 May 2009 (UTC)

I'm sorry, I don't intend to do so. But I think other people are working on that matter. I recently read one or two mails in the talk or talk-de list. server side scripts and someone who wanted to translate like you. Anyway, everyone can use the program on her/his server! I just wrote it for Frederik and his Geofabrik Downloads --Gary68 12:52, 30 May 2009 (UTC)
Thats my intention, to provide an mirror service for whole areas instead to request the stuff from osmxapi. Think this would be a great job. But anyway it's just an idea :-) --!i! 14:37, 30 May 2009 (UTC)
Let's see what Frederik says after he sees my work. Maybe there will be some results available on a regular basis - maybe not. --Gary68 15:05, 30 May 2009 (UTC)

compilation aborted at boundaries.pl line 53

Can someone help me with this problem? this is on Windows 7 RTM x64. Is the script only working on linux? I will tryout later on Ubuntu, but just wondered.

Command: perl boundaries.pl -in=europe.osm.bz2 -html=europe.htm -csv=europe.csv -polybase=europe -poly -pics -adminlevel=2


error message: Can't locate strict.pm in @INC (@INC contains: /usr/lib/perl5/5.10/i686-cygwin /usr/lib/perl5/5.10 /usr/lib/perl5/site_perl/5.10/i686-cygwin /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10/i686-cygwin /usr/l ib/perl5/vendor_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at boundaries.pl line 53. BEGIN failed--compilation aborted at boundaries.pl line 53.

It is not only running under linux. but it sure is much easier... you seem to have a vary basic problem, but who an say for sure? use strict and use warnings are basic statements which occur in nearly every program... Try an empty program with just these two statements. what happens? if an error occurs don't spend more time there... --Gary68 12:25, 15 September 2009 (UTC)
I had my Ubuntu GDM crashed, so took me some time to retry. Now I get another error:
user@ubuntu-desktop:/media/Data/Garmin/Viewfinderpanoramas 3degrees$ perl boundaries.pl -in=europe.osm.bz2 -html=europe.htm -csv=europe.csv -polybase=europe -poly -pics -adminlevel=2
Can't locate Math/Polygon.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at boundaries.pl line 59.
BEGIN failed--compilation aborted at boundaries.pl line 59.
felix@ubuntu-desktop:/media/Data/Garmin/Viewfinderpanoramas 3degrees$
Could it be that the script is somehow broken? This happens on Ubuntu 9.04 with perl installed.--Extremecarver 16:30, 16 September 2009 (UTC)
get Math::Polygon from CPAN and copy into module folder --Gary68 19:25, 16 September 2009 (UTC)
o.k. after about 2-3 hours googling and installing packages I managed to install math::polygon - I had to install loads of other bullshit to get it to compile (libpod, cpan, ...) Then I had the big problem not to know where to put osm.pm. I Thought that I have to put it into my CPAN lib folder, however it only started working after being placed into /etc/perl/osm. Can't recommend any beginner to try to get this running. Now the script is running. I desperately hope it gets me all national borders of europe as .poly files....--Extremecarver 23:36, 16 September 2009 (UTC)