Code Monkey home page Code Monkey logo

geocat's Introduction

GeoCAT

Dependencies

  • Ruby 2.7.7
  • Bundler 2
  • PostgreSQL 14

Installation instructions

  1. Open up a terminal window, and go to a machine's folder

    $ cd ~/Sources

  2. Clone the repository

    $ git clone git://github.com/Vizzuality/GeoCAT.git

  3. Go into the GeoCAT folder

    $ cd GeoCAT

  4. I case you have installed rvm, grant it to execute the .rvmrc file

  5. Install bundler

    $ gem install bundler

  6. Execute bundler install command

    $ bundle install

  7. Set up the database

    $ rake db:setup

  8. And then, start the server

    $ bundle exec rails server

  9. It should be working at http://localhost:3000

Installing using Docker

  1. Install Docker

  2. Run the following commands:

docker compose up --build
  1. Setup the database (in other terminal window)
docker compose run web bundle exec rake db:setup

The Vizzuality team

geocat's People

Contributors

adammulligan avatar agnessa avatar apercas avatar davidsingal avatar ferdev avatar jatorre avatar javierarce avatar martintomas avatar raulb avatar simaob avatar stevebachman avatar tiagojsag avatar xavijam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geocat's Issues

Trivial: Update GBIF API call

Currently GeoCAT is including data GBIF have marked as "geospatially suspicious" which makes GBIF mediated data look poor. Try Puma concolor which shows records in the sea off Argentina, which GBIF maps will not.

Please update this line as it is incorrectly using the GBIF API:
https://github.com/Vizzuality/GeoCAT/blob/master/app/controllers/gbif_controller.rb#L14

There are 2 issues:

  1. isGeoreferenced=true should be hasCoordinate=true
  2. coordinateissues=false should be hasGeospatialIssue=false

Here is a working example.
http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&format=darwin&limit=3&hasGeospatialIssue=false&scientificName=Puma%20concolor

Suggestion: Add a year filter on the GBIF query and increase number of records

The GBIF index holds data covering >100 years.
When you query the GBIF index you don't include a year filter, and you only page 3 times (of 300 results each). I'd suggest considering adding a &year>1980 or similar to the filter to get the latest data.

I'd also suggest considering something like 10 pages of 250 records by using &limit=250
or more pages. 900 is both somewhat bizarre and quite low - ideally the user should be able to increase to a very large amount.

Please add field "datasetKey" to GBIF controller

When occurrence data is retrieved from GBIF, please add datasetKey as a field available to the user in downloads. This will allow the user to identify the parent datasets and cite the data according to our citation guidelines.

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.