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

maning sambale emmanuel.sambale at gmail.com
Fri Jul 1 03:46:44 BST 2011


Re-reading your message, the perl script simply extracts a bbox of the
data.  For this process, just use osmosis:
http://wiki.openstreetmap.org/wiki/Osmosis

You can even use a polygon instead of a simple -bbox:
http://wiki.openstreetmap.org/wiki/Polygon


On Fri, Jul 1, 2011 at 10:39 AM, Noli Sicad <nsicad at gmail.com> wrote:
> Maning,
>
> OK. I will boot my laptop in Ubuntu 10.04.
>
> Any instruction, how to do OSM file excerpt-area in Ubuntu without Perl?
>
> I found this info as well.
> http://triopter.com/archive/how-to-install-perl-modules-on-mac-os-x-in-4-easy-steps/
>
> I run this command.
>
> ~~~~~
> sudo perl -MCPAN -e shell
> localhost:~ root# sudo perl -MCPAN -e shell
>
> ~~~~~
>
> Got a lot of questions in the output terminal. Probably more than 10
> questions to answer.
>
> I want easier way to do get Vic.osm from Australia.osm, then I can
> convert Vic.osm to Spatialite (.db / .sqlite) file.
>
> Noli
>
> On 7/1/11, maning sambale <emmanuel.sambale at gmail.com> wrote:
>> 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 /opt/local/lib/perl5/5.8.8/darwin-2level/
>>
>> Some threads I found:
>> http://web.archiveorange.com/archive/v/tomQkFckXIEapRXDWu0z
>> http://comments.gmane.org/gmane.comp.gis.openstreetmap.devel/12112
>>
>> Hope that was helpful. Maybe Eugene can chime in. :)
>>
>>
>>
>>
>> On Fri, Jul 1, 2011 at 9:22 AM, Noli Sicad <nsicad at gmail.com> wrote:
>>> 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 for
>>> iPhone/iPad Openlayers + Spatialite app that I am working. I found
>>> this info (below).
>>>
>>> http://users.tpg.com.au/users/stevez/OSM/credits.html
>>>
>>> planetosm-excerpt-area.pl -bbox -39.4,140.2,-33.7,151.5 australia.osm >
>>> VIC.osm
>>>
>>> However, it is need Planet.pm. How do you download the planet.pm and
>>> install this Perl module in Mac OS X?
>>>
>>> Thanks in advance.
>>>
>>> Noli
>>>
>>> _______________________________________________
>>> talk-ph mailing list
>>> talk-ph at openstreetmap.org
>>> http://lists.openstreetmap.org/listinfo/talk-ph
>>>
>>
>>
>>
>> --
>> cheers,
>> maning
>> ------------------------------------------------------
>> "Freedom is still the most radical idea of all" -N.Branden
>> wiki: http://esambale.wikispaces.com/
>> blog: http://epsg4253.wordpress.com/
>> ------------------------------------------------------
>>
>



-- 
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
------------------------------------------------------



More information about the talk-ph mailing list