Re: [talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-07-01 Thread Eugene Alvin Villar
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

Re: [talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-07-01 Thread Noli Sicad
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:

Re: [talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-07-01 Thread Noli Sicad
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

[talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-06-30 Thread Noli Sicad
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

Re: [talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-06-30 Thread maning sambale
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

Re: [talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-06-30 Thread Noli Sicad
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?

Re: [talk-ph] OSM, planet.pm (perl module installing), planetosm-excerpt-area.pl in Mac OS X

2011-06-30 Thread Noli Sicad
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