[Xastir] Missing dependency for gpx2shape

Tom Russo russo at bogodyn.org
Mon Mar 21 15:11:11 EDT 2016


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

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.

Rarely used scripts do have a tendency to get very out of date, and this one's
gone 10 years without being touched.

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.  

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
 echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]

 




More information about the Xastir mailing list