Version 9 (modified by at 2016-09-26T23:04:50+02:00) ( diff ) | ,
---|
Set up GPSphoto server on CentOS
- Install a bare web server
- Add the Epel repository
yum install epel-release
- install spatiallite if you chose SQLite as the backend DB:
yum install libspatialite
- Install postgresql server and postgis if Postgres is the backend DB, see the PostgresQL / Postgis section below
- In order for GPSphoto to work you also need the following packages:
yum install mod_wsgi python-webob python-pillow python2-boto
- To make sure exif data is kept with the images install piexif (attached)
yum install piexif-1.0.7-1.noarch.rpm
PostgresQL / PostGIS
Get the latest postgres / postgis by install the Yum repo from https://yum.postgresql.org/repopackages.php and install the following packages:
yum install postgresql95-server postgresql95 postgresql95-contrib postgis2_95 postgis2_95-utils postgis2_95-client python-psycopg2 python-psycopg2-doc ogr_fdw95
Edit /etc/sysconfig/pgsql/postgresql-9.5 to contain the following content:
PGPORT=5440
Initialize the database and start and enable it:
/usr/pgsql-9.5/bin/postgresql95-setup initdb systemctl enable postgresql-9.5.service systemctl start postgresql-9.5
Create the DB schema:
sudo -i postgres createdb mapserver psql mapserver > create user mapserver > alter user mapserver with password <password> psql -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql -d mapserver psql -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql -d mapserver psql -f /usr/share/postgresql/9.1/contrib/postgis_comments.sql -d mapserver
Useful tools
print detailed exif information of image:
identify -verbose P1100818.JPG
Attachments (9)
-
piexif-1.0.7-1.noarch.rpm
(30.6 KB
) - added by at 2016-09-25T11:20:19+02:00.
piexif is a python library to store exif information in images
-
simplekml-1.3.0-1.noarch.rpm
(78.1 KB
) - added by at 2016-09-27T22:52:23+02:00.
kml library for python
- spatialite-tools-4.1.1-13.el7.centos.src.rpm (473.4 KB ) - added by at 2016-10-13T23:49:13+02:00.
- spatialite-tools-4.1.1-13.el7.centos.x86_64.rpm (169.6 KB ) - added by at 2016-10-13T23:49:28+02:00.
- spatialite-tools-debuginfo-4.1.1-13.el7.centos.x86_64.rpm (425.9 KB ) - added by at 2016-10-13T23:49:47+02:00.
- pyspatialite-2.6.2_spatialite.2.4.0_4-1.src.rpm (76.0 KB ) - added by at 2016-10-14T00:20:57+02:00.
- pyspatialite-2.6.2_spatialite.2.4.0_4-1.x86_64.rpm (981.0 KB ) - added by at 2016-10-14T00:21:15+02:00.
- pyspatialite-debuginfo-2.6.2_spatialite.2.4.0_4-1.x86_64.rpm (2.9 MB ) - added by at 2016-10-14T00:27:43+02:00.
- piexif-1.0.12-1.noarch.rpm (32.1 KB ) - added by at 2017-06-25T23:07:50+02:00.
Note:
See TracWiki
for help on using the wiki.