Giter VIP home page Giter VIP logo

geograph-project's Introduction

NOTE: This the 'master' Branch, is the generic version of the project, it's not actively maintained, but major functions may be committed here. 
The actual regional projects, currently Geograph "Britain and Ireland", "Germany", and "Channel Islands", have their own active branches. 

https://github.com/geograph-project/geograph-project/tree/british-isles
https://github.com/geograph-project/geograph-project/tree/germany
https://github.com/geograph-project/geograph-project/tree/channel-islands

They will typically have more active development. There are other branches used for development of various things, but these are the actively launched sites. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=======================================================================
                             GEOGRAPH README
=======================================================================

A) Introduction
B) Directory Structure
C) Installation
D) Getting Started
E) Adapting for other countries



A) Introduction
-----------------------------------------------------------------------

GeoGraph is web based project to collect and reference geographically
representative images of every square kilometer of the British Isles, but
the software is being designed to allow it to be adapted for similar
projects in other countries

For more info about the UK GeoGraph project
visit http://www.geograph.org.uk/

The GeoGraph software is licenced using the GNU General Public Licence,
see LICENCE.txt for details.


B) Directory Structure
-----------------------------------------------------------------------

config-examples/
  example configuration for the geograph project

libs/adodb/
  adodb database library (LGPL)
  download the latest release from http://adodb.sourceforge.net
  
libs/geograph/
  geograph specific classes and library code (GPL)
  
libs/smarty/
  Smarty templating library (LGPL)
  download the latest release from http://smarty.php.net
  
public_html/
  web root
  
public_html/templates/basic/
  basic smarty template and supporting files - as other
  site templates are developed, they would go into similar
  directories at this level. All template specific graphics
  and CSS files are stored here also.

schema/
  mysql database schema
  
  
C) Installation
-----------------------------------------------------------------------
This software requires PHP 4.3 or higher, and was designed to run on
apache webservers using the php4 module. Y

1. unpack the files into <basedir>

2. configure apache with a virtual host for the geograph site using the 
   file in config-example/apache/geograph.conf as a guide.

3. create a new mysql database and create a user with all privileges on it.

4. initialise the database using schema/schema.mysql 
   (e.g. mysql geograph < schema.mysql)

5. Copy libs/conf/www.exampledomain.com.conf.php to 
   libs/conf/<**yourdomain**>.conf.php

6. Edit this configuration file with your database credentials. You 
   should also edit other configuration entries such as contact_email, 
   register_confirmation_secret and photo_hashing_secret.

7. Restart apache and attempt to access http://<**yourdomain**>/test.php - 
   this will test your installation and report back on anything that must 
   be fixed

8. Once test.php reports success, you're good to go!


D) Getting Started
-----------------------------------------------------------------------

Register as a user via site to admin privileges. The very first user 
(user_id=1) is automatically a admin.

Now you can log in and access administrative functions of the site. 


One of the first tasks is to initialise the gridsquare table with valid 
gridsquares by using a 1km-per-pixel greyscale PNG. Run the 
admin/gridbuilder.php script to perform this task.
(or can use gridsquare.mysql.bz2 to get a empty Britain & Ireland map)


Once that is done, the system is ready to accept photographs.


E) Adapting for other countries
-----------------------------------------------------------------------

The code as supplied is ready for the British Isles, and we're happy to
help make changes to support other geographical areas. At the very least, 
you'll need to do the following:

1. Copy the templates/basic directory to templates/<**country**> and 
   edit the logo graphics and any other British Isles specific text

2. Change the configuration file to specify the new template name, e.g.
   $CONF['template']='<**country**>';

3. Clear the gridprefix table and fill it with the grid square prefixes 
   used in your region

4. Create a 1km-per-pixel greyscale PNG of your region, where white is sea 
   and black is land, and shades of grey represent squares with varying 
   degrees of land present, clear the gridsquare table and run the 
   admin/gridbuilder.php script to initialise the gridsquare table.

geograph-project's People

Contributors

barryhunter avatar lordelph avatar rutson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

geograph-project's Issues

Since Disabling backups on Replica, creating SOME temporally table fail.

Manticore uses some temporally tables for indexing, which even though it's against a readonly replica, (should) still work. We recently disabled backups on the replica (it's only a replica, the primary itself is backed up) to save costs.

... but this now causes some temporary tables to fail. This is a repeat of queries manticore runs...

Replica.geograph_live>SELECT @max_doc_id := max_doc_id FROM sph_counter WHERE counter_id='gridimage_search' and server_id='manticore-0';
+---------------------------+
| @max_doc_id := max_doc_id |
+---------------------------+
|                   6697805 |
+---------------------------+
1 row in set (0.001 sec)

Replica.geograph_live>CREATE TEMPORARY TABLE sph_delta_ids (primary key (gridimage_id))            SELECT gridimage_id FROM gridimage_search WHERE gridimage_id > @max_doc_id OR upd_timestamp > date_sub(now(),interval 4 day);
Query OK, 3627 rows affected (0.030 sec)
Records: 3627  Duplicates: 0  Warnings: 0

Replica.geograph_live>insert ignore into sph_delta_ids select distinct gridimage_id FROM gridimage_tag WHERE updated > DATE_SUB(NOW(),interval 2 day) and gridimage_id < 4294967296;
Query OK, 635 rows affected, 1649 warnings (0.017 sec)
Records: 2284  Duplicates: 1649  Warnings: 1649

Replica.geograph_live>CREATE TEMPORARY TABLE gridimage_snippet_text_delta (primary key (gridimage_id))             SELECT gridimage_id, GROUP_CONCAT(gs.snippet_id) AS snippet_id, GROUP_CONCAT(s.comment) AS snippet, GROUP_CONCAT(s.title) AS snippet_title             FROM gridimage_snippet gs               INNER JOIN sph_delta_ids USING (gridimage_id)           LEFT JOIN snippet s USING (snippet_id)          WHERE enabled = 1             GROUP BY gridimage_id;
ERROR 1290 (HY000): The MariaDB server is running with the --read-only option so it cannot execute this statement

The first CREATE TEMPORARY TABLE, works, the second fails! Default Engine is INNODB.

THe gridimage_snippet_text_delta is created, but has no rows. The SELECT itself returns rows.

Appears to be related to this: https://jira.mariadb.org/browse/MDEV-6581 - although that says it only happens when binlog is enabled. We are getting this issue now that binlog is disabled.

High Resolution Logo

Hello,

I use Geograph often and noticed the logo was low resolution on hidpi devices.

I'm unsure if this is something that already exists but I've redrew the logo as a vector - please feel free to use it if it helps.

SVG

Geograph Logo

PNG (1920px)

Geograph Logo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.