This might be moot, but the simplest way to use a Perl module is to
just copy the module directory/file to the same directory as the Perl
script that uses it (assuming that the Perl module is all Perl
code--if the module links to non-Perl code such as C libraries, then
you need to actually install
I managed to extract Vic.osm from Australia.osm using Osmosis with the
Qgis polygon plugin.
I install Osmosis in Mac OS X 10.6.x using Homebrew.
Now, OSM to Spatialite. I got this error, i.e. parser error.
~~
localhost:bin root# spatialite_osm_map -o Vic.osm -d Vic.sqlite
SQLite version:
Correction.
Australia.osm is big, not spatialite file.
Australia.sqlite before vacuum was 1.11 Gb and after vacuum it is only 469 Mb.
I am viewing it now using Sqlite manager in Firefox.
Are OSM file from country to country have almost same / similar
database structure?
Noli
On 7/2/11, Noli
Hi Maning,
I need help on figuring how to these things, i.e. installing a PERL
module Planet.pm and running planetosm-excerpt-area.pl in Mac OS X.
I know that you using a Mac and working a lot of extracting data from OSM file.
I am trying to extract State of Victoria from Australia.osm file
Noli,
I use an Ubuntu machine for most of my osm data munging. And I also
don't use Perl much.
That said, most perl modules can be installed with CPAN or directly
copy them to your /usr/lib/perl/5.8.8/ . On a mac, you probably have
darwin port so it should be
Maning,
For this process, just use osmosis:
http://wiki.openstreetmap.org/wiki/Osmosis
OK. This is easier option.
You can even use a polygon instead of a simple -bbox:
http://wiki.openstreetmap.org/wiki/Polygon
Now, how I figure out the right polygon for Victoria for this bbox?
Brilliant!
Needs to one polygon for Victoria, or a whole state of Victoria with
multiple polygons will do?
Installing the plugin now. I think I can work this out now :-).
Thanks a lot Maning.
Noli
On 7/1/11, maning sambale emmanuel.samb...@gmail.com wrote:
An easier way to create a polygon