[Xastir] Missing dependency for gpx2shape

Eric Christensen eric at christensenplace.us
Mon Mar 21 19:40:07 EDT 2016


On 03/21/2016 03:11 PM, Tom Russo wrote:
> On Mon, Mar 21, 2016 at 12:12:06PM -0400, we recorded a bogon-computron collision of the <eric at christensenplace.us> flavor, containing:
>> Running Debian 8.3 and can't seem to figure out what I need to install
>> to make this script work:
>>
>> $ perl /usr/local/share/xastir/scripts/gpx2shape TdC_100.gpx
>> Can't locate Geo/Shapelib.pm in @INC (you may need to install the
>> Geo::Shapelib module) (@INC contains: /etc/perl
>> /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2
>> /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5
>> /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20
>> /usr/local/lib/site_perl .) at /usr/local/share/xastir/scripts/gpx2shape
>> line 28.
>>
>>
>> BEGIN failed--compilation aborted at
>> /usr/local/share/xastir/scripts/gpx2shape line 28.
>>
>> I don't see any perl package for Shapelib (or similar).
> 
> 
> http://search.cpan.org/dist/Geo-Shapelib-0.21/Shapelib.pm

Yeah, I tried that, too, but no joy.

> 
> But don't get your hopes up --- that script was written in 2006 and was never
> modified.  It might work if you have the Shapelib.pm module, but might 
> not.

Yeah, I'm giving up on that script.  I can't get it to work.  :(

> You may be better off using gdal tools to convert gpx files to shapefiles.  
> They are extremely powerful and are under constant development.
> 
> The tool to use for this would be "ogr2ogr", which can convert any vector
> format that GDAL supports to any other format that GDAL supports.  GPX and
> Shapefile are among those.  

I installed GDAL but I can't seem to figure out how to make the ogr2ogr
script to work (and the documentation is minimal).  I didn't realize it
was going to be so difficult to get a GPX track to show up in Xastir!
*sigh*

73,
Eric WG3K


More information about the Xastir mailing list