Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2008 15:34:56 GMT
From:      Lukas Maly <Iam@LukasMaly.NET>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/120837: New port: astro/gpscorrelate; Corelate exif metadata of images
Message-ID:  <200802191534.m1JFYuCw096706@freefall.freebsd.org>
Resent-Message-ID: <200802191540.m1JFe8oj097360@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         120837
>Category:       ports
>Synopsis:       New port: astro/gpscorrelate; Corelate exif metadata of images
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 19 15:40:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Lukas Maly
>Release:        FreeBSD6.3-RELEASE
>Organization:
LukasMaly.NET
>Environment:
FreeBSD f63.lukasmaly.net 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Create new port of small application.
gpscorrelate-1.5.6

gpscorrelate
gpscorrelate-gui with GTK
>How-To-Repeat:
Please commit this port
>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gpscorrelate
#	gpscorrelate/Makefile
#	gpscorrelate/distinfo
#	gpscorrelate/pkg-descr
#	gpscorrelate/files
#	gpscorrelate/files/gpscorrelate-gui.1
#	gpscorrelate/files/patch-unixtime.h
#	gpscorrelate/files/gpscorrelate.1
#	gpscorrelate/pkg-plist
#
echo c - gpscorrelate
mkdir -p gpscorrelate > /dev/null 2>&1
echo x - gpscorrelate/Makefile
sed 's/^X//' >gpscorrelate/Makefile << 'END-of-gpscorrelate/Makefile'
X# New ports collection makefile for:	gpscorrelate
X# Date created:		Feb 2008
X# Whom:			Lukas Maly
X#
X# $FreeBSD: ports/astro/gpscorrelate/Makefile $
X
XPORTNAME=	gpscorrelate
XPORTVERSION=	1.5.6
XCATEGORIES=	astro geography
XMASTER_SITES=	http://freefoote.dview.net/linux/
X
XMAINTAINER=	Iam@LukasMaly.NET
XCOMMENT=	A gps file gpx correlete exif tag in photos
X
XLIB_DEPENDS=	exiv2:${PORTSDIR}/graphics/exiv2 \
X		gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24				
X		
XMAN1=		gpscorrelate.1 gpscorrelate-gui.1
X
Xpost-patch:
X		${REINPLACE_CMD} -e "s|-I/usr/include|-I${LOCALBASE}/include|" ${WRKSRC}/Makefile
X
Xdo-install:
X		@${INSTALL_PROGRAM} ${WRKSRC}/gpscorrelate ${PREFIX}/bin
X		@${INSTALL_PROGRAM} ${WRKSRC}/gpscorrelate-gui ${PREFIX}/bin
X		@${INSTALL_MAN} ${PORTSDIR}/astro/gpscorrelate/files/gpscorrelate* ${PREFIX}/man/man1
X		@${MKDIR} ${PREFIX}/share/doc/gpscorrelate
X		@${MKDIR} ${PREFIX}/share/gpscorrelate
X		@${MKDIR} ${PREFIX}/share/doc/gpscorrelate/html
X		${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/gpscorrelate/html
X		${INSTALL_DATA} ${WRKSRC}/doc/*.png ${PREFIX}/share/doc/gpscorrelate/html
X		${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/gpscorrelate/
X		${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/gpscorrelate/
X		${INSTALL_DATA} ${WRKSRC}/RELEASES ${PREFIX}/share/gpscorrelate/
X		
X.include <bsd.port.mk>
END-of-gpscorrelate/Makefile
echo x - gpscorrelate/distinfo
sed 's/^X//' >gpscorrelate/distinfo << 'END-of-gpscorrelate/distinfo'
XMD5 (gpscorrelate-1.5.6.tar.gz) = a76ee92d6f37c7d7d3a3c36dcd07ba62
XSHA256 (gpscorrelate-1.5.6.tar.gz) = cbd75278f8707b63c135af5ec83b4323b17313b23cdd0b29fcb1d786c50e1a2e
XSIZE (gpscorrelate-1.5.6.tar.gz) = 130623
END-of-gpscorrelate/distinfo
echo x - gpscorrelate/pkg-descr
sed 's/^X//' >gpscorrelate/pkg-descr << 'END-of-gpscorrelate/pkg-descr'
XPrior to version 1.5.2, there was a bug in gpscorrelate that caused
Xgpscorrelate to incorrectly parse dates. The result is that the internal
Xdate format was one month out (ie, December was considered as the following
XJanuary, and January was considered as Feburary).
X
XThis did not affect the matching of photos, as the GPX data and the EXIF
Xdata were passed through the same buggy conversion.
X
XWhen writing out GPS data, gpscorrelate wrote a GPSTimeStamp and a
XGPSDateStamp tag, which had the UTC GPS Time and Date of the match. The
XDateStamp and TimeStamp tags were written incorrectly (from two distinctly
Xseperate bugs), and was around one month ahead of the real time. The
Xoriginal date and time of the photo were not modified.
X
XVersion 1.5.2 introduces a new command line option, --fix-datestamps.
XRunning gpscorrelate with this option and then a series of JPEG files that
Xwere tagged will detect and correct the problem. This will modify the
XGPSDateStamp and GPSTimeStamp tag to be correct, but only if this is
Xrequired. You can run gpscorrelate with the -n (no write) option just to see
Xwhich files are affected without making any changes. When correcting files,
X--no-mtime (don't change the mtime of the file) is implied.
X
XWhen using --fix-datestamps, you will also need to use --timeadd to specify
Xthe difference between the photo time and UTC.
X
XWWW: http://freefoote.dview.net/linux_gpscorr.html
END-of-gpscorrelate/pkg-descr
echo c - gpscorrelate/files
mkdir -p gpscorrelate/files > /dev/null 2>&1
echo x - gpscorrelate/files/gpscorrelate-gui.1
sed 's/^X//' >gpscorrelate/files/gpscorrelate-gui.1 << 'END-of-gpscorrelate/files/gpscorrelate-gui.1'
X.\"     Title: GPSCORRELATE
X.\"    Author: Stefano Zacchiroli
X.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>;
X.\"      Date: 08 Sep 2006
X.\"    Manual: 
X.\"    Source: 
X.\"
X.TH "GPSCORRELATE" "1" "08 Sep 2006" "" ""
X.\" disable hyphenation
X.nh
X.\" disable justification (adjust text to left margin only)
X.ad l
X.SH "NAME"
Xgpscorrelate \- correlates digital photos with GPS data filling EXIF fields
X.SH "SYNOPSIS"
X.HP 13
X\fBgpscorrelate\fR [\fB\-g\ \fR\fB\fIfile.gpx\fR\fR] [\fIoption\fR...]
X.HP 17
X\fBgpscorrelate\-gui\fR
X.SH "DESCRIPTION"
X.PP
XThis manual page documents briefly the
X\fBgpscorrelate\fR
Xand
X\fBgpscorrelate\-gui\fR
Xcommands.
X.PP
XThis manual page was written for the
XDebian(TM)
Xdistribution because the original programs do not have a manual page. Instead, they have documentation in HTML format; see below.
X.PP
X\fBgpscorrelate\fR
Xis a program that acts on digital photo in JPEG format filling EXIF (Exchangeable Image File Format) fields related to GPS (Global Positioning System) information. Source for the GPS data is a record of GPS information encoded in GPX (GPS Exchange Format) Format. The act of filling those fields is referred to as
X\fIcorrelation\fR.
X.PP
XIf GPS data are available at the precise moment the photo was taken (with a 1\-second granularity) the GPS data are stored unmodified in EXIF fields. If they are not linear interpolation of GPS data available at moments before and after the photo was taken can be used.
X.PP
X\fBgpscorrelate\fR
Xis a command line tool implementing correlation whereas
X\fBgpscorrelate\-gui\fR
Xis the corresponding GTK+ graphical user interface.
X.SH "OPTIONS"
X.PP
XThese programs follow the usual
XGNU
Xcommand line syntax, with long options starting with two dashes (`\-'). A summary of options is included below. For a complete description, see the HTML documentation.
X.TP 3n
X\fB\-g\fR, \fB\-\-gps\fR
Xrequired, specifies GPX file with GPS data
X.TP 3n
X\fB\-z\fR, \fB\-\-timeadd\fR \fB+/\-\fR\fIXX\fR[\fB:\fR\fIXX\fR]
Xtime to add to GPS data to make it match photos. GPS data is in UTC; photos are not likely to be in UTC. Enter the timezone used when taking the photos: eg,
X\fB+8\fR
Xfor Perth
X.TP 3n
X\fB\-i\fR, \fB\-\-no\-interpolation\fR
Xdisable interpolation between points. Interpolation is linear, points are rounded if disabled
X.TP 3n
X\fB\-v\fR, \fB\-\-verbose\fR
Xshow what has been selected
X.TP 3n
X\fB\-d\fR, \fB\-\-datum\fR \fIdatum\fR
Xspecify measurement datum. If not set, WGS\-84 used
X.TP 3n
X\fB\-n\fR, \fB\-\-no\-write\fR
Xdo not write the exif data. Useful with
X\fB\-\-show\fR
X.TP 3n
X\fB\-m\fR, \fB\-\-max\-dist\fR \fItime\fR
Xmax time outside points that photo will be matched. Time is in seconds
X.TP 3n
X\fB\-s\fR, \fB\-\-show\fR
XJust show the GPS data from the given files, if it exists
X.TP 3n
X\fB\-o\fR, \fB\-\-machine\fR
XJust show the GPS data from the given files, machine readable output
X.TP 3n
X\fB\-r\fR, \fB\-\-remove\fR
XStrip GPS tags from the given files, and then quit
X.TP 3n
X\fB\-t\fR, \fB\-\-ignore\-tracksegs\fR
XInterpolate between track segments too
X.TP 3n
X\fB\-M\fR, \fB\-\-no\-mtime\fR
XDo not change mtime of modified files
X.TP 3n
X\fB\-h\fR, \fB\-\-help\fR
XShow summary of options.
X.SH "SEE ALSO"
X.PP
Xgpsd (1), gpsbabel (1), gpxlogger (1), cgpxlogger (1).
X.PP
XThe documentation of gpscorrelate and gpscorrelate\-gui in HTML format are available on the filesystem at
X\fI/usr/local/share/doc/gpscorrelate/html/\fR.
X.SH "AUTHOR"
X.PP
XThis manual page was written by Stefano Zacchiroli
X<zack@debian.org>
Xfor the
XDebian(TM)
Xsystem (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the
XGNU
XGeneral Public License, Version 2 any later version published by the Free Software Foundation.
X.PP
XOn Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.
X.SH "AUTHOR"
X.PP
X\fBStefano\fR \fBZacchiroli\fR
X.sp -1n
X.IP "" 3n
XAuthor.
X.SH "COPYRIGHT"
XCopyright \(co 2006 Stefano Zacchiroli <zack@debian.org>
X.br
X
END-of-gpscorrelate/files/gpscorrelate-gui.1
echo x - gpscorrelate/files/patch-unixtime.h
sed 's/^X//' >gpscorrelate/files/patch-unixtime.h << 'END-of-gpscorrelate/files/patch-unixtime.h'
X--- unixtime.h.orig	2008-02-18 12:50:16.000000000 +0100
X+++ unixtime.h	2008-02-18 12:50:41.000000000 +0100
X@@ -27,6 +27,7 @@
X 
X #define EXIF_DATE_FORMAT "%d:%d:%d %d:%d:%d"
X #define GPX_DATE_FORMAT "%d-%d-%dT%d:%d:%dZ"
X+#include <sys/types.h>
X 
X time_t ConvertToUnixTime(char* StringTime, char* Format,
X 		int TZOffsetHours, int TZOffsetMinutes);
END-of-gpscorrelate/files/patch-unixtime.h
echo x - gpscorrelate/files/gpscorrelate.1
sed 's/^X//' >gpscorrelate/files/gpscorrelate.1 << 'END-of-gpscorrelate/files/gpscorrelate.1'
X.\"     Title: GPSCORRELATE
X.\"    Author: Stefano Zacchiroli
X.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>;
X.\"      Date: 08 Sep 2006
X.\"    Manual: 
X.\"    Source: 
X.\"
X.TH "GPSCORRELATE" "1" "08 Sep 2006" "" ""
X.\" disable hyphenation
X.nh
X.\" disable justification (adjust text to left margin only)
X.ad l
X.SH "NAME"
Xgpscorrelate \- correlates digital photos with GPS data filling EXIF fields
X.SH "SYNOPSIS"
X.HP 13
X\fBgpscorrelate\fR [\fB\-g\ \fR\fB\fIfile.gpx\fR\fR] [\fIoption\fR...]
X.HP 17
X\fBgpscorrelate\-gui\fR
X.SH "DESCRIPTION"
X.PP
XThis manual page documents briefly the
X\fBgpscorrelate\fR
Xand
X\fBgpscorrelate\-gui\fR
Xcommands.
X.PP
XThis manual page was written for the
XDebian(TM)
Xdistribution because the original programs do not have a manual page. Instead, they have documentation in HTML format; see below.
X.PP
X\fBgpscorrelate\fR
Xis a program that acts on digital photo in JPEG format filling EXIF (Exchangeable Image File Format) fields related to GPS (Global Positioning System) information. Source for the GPS data is a record of GPS information encoded in GPX (GPS Exchange Format) Format. The act of filling those fields is referred to as
X\fIcorrelation\fR.
X.PP
XIf GPS data are available at the precise moment the photo was taken (with a 1\-second granularity) the GPS data are stored unmodified in EXIF fields. If they are not linear interpolation of GPS data available at moments before and after the photo was taken can be used.
X.PP
X\fBgpscorrelate\fR
Xis a command line tool implementing correlation whereas
X\fBgpscorrelate\-gui\fR
Xis the corresponding GTK+ graphical user interface.
X.SH "OPTIONS"
X.PP
XThese programs follow the usual
XGNU
Xcommand line syntax, with long options starting with two dashes (`\-'). A summary of options is included below. For a complete description, see the HTML documentation.
X.TP 3n
X\fB\-g\fR, \fB\-\-gps\fR
Xrequired, specifies GPX file with GPS data
X.TP 3n
X\fB\-z\fR, \fB\-\-timeadd\fR \fB+/\-\fR\fIXX\fR[\fB:\fR\fIXX\fR]
Xtime to add to GPS data to make it match photos. GPS data is in UTC; photos are not likely to be in UTC. Enter the timezone used when taking the photos: eg,
X\fB+8\fR
Xfor Perth
X.TP 3n
X\fB\-i\fR, \fB\-\-no\-interpolation\fR
Xdisable interpolation between points. Interpolation is linear, points are rounded if disabled
X.TP 3n
X\fB\-v\fR, \fB\-\-verbose\fR
Xshow what has been selected
X.TP 3n
X\fB\-d\fR, \fB\-\-datum\fR \fIdatum\fR
Xspecify measurement datum. If not set, WGS\-84 used
X.TP 3n
X\fB\-n\fR, \fB\-\-no\-write\fR
Xdo not write the exif data. Useful with
X\fB\-\-show\fR
X.TP 3n
X\fB\-m\fR, \fB\-\-max\-dist\fR \fItime\fR
Xmax time outside points that photo will be matched. Time is in seconds
X.TP 3n
X\fB\-s\fR, \fB\-\-show\fR
XJust show the GPS data from the given files, if it exists
X.TP 3n
X\fB\-o\fR, \fB\-\-machine\fR
XJust show the GPS data from the given files, machine readable output
X.TP 3n
X\fB\-r\fR, \fB\-\-remove\fR
XStrip GPS tags from the given files, and then quit
X.TP 3n
X\fB\-t\fR, \fB\-\-ignore\-tracksegs\fR
XInterpolate between track segments too
X.TP 3n
X\fB\-M\fR, \fB\-\-no\-mtime\fR
XDo not change mtime of modified files
X.TP 3n
X\fB\-h\fR, \fB\-\-help\fR
XShow summary of options.
X.SH "SEE ALSO"
X.PP
Xgpsd (1), gpsbabel (1), gpxlogger (1), cgpxlogger (1).
X.PP
XThe documentation of gpscorrelate and gpscorrelate\-gui in HTML format are available on the filesystem at
X\fI/usr/local/share/doc/gpscorrelate/html/\fR.
X.SH "AUTHOR"
X.PP
XThis manual page was written by Stefano Zacchiroli
X<zack@debian.org>
Xfor the
XDebian(TM)
Xsystem (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the
XGNU
XGeneral Public License, Version 2 any later version published by the Free Software Foundation.
X.PP
XOn Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.
X.SH "AUTHOR"
X.PP
X\fBStefano\fR \fBZacchiroli\fR
X.sp -1n
X.IP "" 3n
XAuthor.
X.SH "COPYRIGHT"
XCopyright \(co 2006 Stefano Zacchiroli <zack@debian.org>
X.br
X
END-of-gpscorrelate/files/gpscorrelate.1
echo x - gpscorrelate/pkg-plist
sed 's/^X//' >gpscorrelate/pkg-plist << 'END-of-gpscorrelate/pkg-plist'
Xbin/gpscorrelate
Xbin/gpscorrelate-gui
Xshare/gpscorrelate/README
Xshare/gpscorrelate/RELEASES
Xshare/gpscorrelate/command-line-options.txt
Xshare/doc/gpscorrelate/html/command.html
Xshare/doc/gpscorrelate/html/concepts.html
Xshare/doc/gpscorrelate/html/corr.png
Xshare/doc/gpscorrelate/html/gui.html
Xshare/doc/gpscorrelate/html/index.html
END-of-gpscorrelate/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802191534.m1JFYuCw096706>