This project is a Hyrax 1.0.5 application that uses the Samvera Labs geo_works gem to ingest works with spatial geographical data.
A functional spec of DCE's first phase of GIS work for UCSB
- Change to your working directory for new development projects
cd .
- Clone this repo
git clone [email protected]:curationexperts/iris.git
- Change to the application directory
cd iris
bundle install
under project's current ruby (2.4.4)- Start redis
redis-server &
note: use&
to start in the background, or run redis in a new terminal session
If you want your fedora objects to be indexed in another solr instance that is used by a geoblacklight app, set the environment variable to point to that solr instance:
export GEOBLACKLIGHT_SOLR_URL="http://127.0.0.1:8987/solr/development"
Indexing into the geoblacklight solr happens in a background job, so make sure your environment is configured to run background jobs.
See notes in the README_geoserver.md
- GDAL
- Mac OSX:
brew install gdal
- Ubuntu: use
sudo apt-get install gdal-bin
- Simple Tiles
-
Mac OS X:
brew install simple-tiles
-
Linux:
Install dependencies:
ruby libgdal-dev libcairo2-dev libpango1.0-dev
Compile:
ruby $ git clone [email protected]:propublica/simple-tiles.git $ cd simple-tiles $ ./configure $ make && make install
bundle exec rake db:setup
bundle exec rake db:migrate
-
Start solr and fedora (in new tabs)
bundle exec solr_wrapper
andbundle exec fcrepo_wrapper
. -
Ensure AdminSet dependencies are in place:
bundle exec rake hyrax:workflow:load
andbundle exec rake hyrax:default_admin_set:create
-
Start server
bundle exec rails s
- Start redis server
- Start tomcat (if you want to run GeoServer)
- Run fcrepo_wrapper from my iris workspace
- Run solr_wrapper from my iris workspace
- Run solr_wrapper from my aster workspace (if you want to integrate with the geoblacklight app)
- Start sidekiq (if you want to run background jobs)
- Start
rails s
Set the following environment variables:
export RAILS_HOST='localhost:3000'
To import work records from a directory that contains zip files:
rake iris:import:from_zips[/path/to/your/zips]
-
The importer expects all the binaries to be found in zip files, for both Raster and Vector works (even for files that are not normally multi-part files, such as GeoTIFF).
-
You can use the importer to create new records, but currently, you cannot update existing records by re-importing them.
-
The importer queues a set of background jobs for each zip file it processes, and some jobs queue other jobs. You'll need to wait for the background jobs to finish running before you will see the new data appear in your GeoBlacklight app and your GeoServer.
-
For the first release, the importer has only been tested with GeoTIFF and Shapefile. Support for other types of Vector or Raster works will be a future round of work.
-
For the first release, the importer has only been tested with records that should be publicly available. Support for login-restricted works will be a future round of work.
-
Although the geo_works gem allows 3 work types, VectorWork, RasterWork, and ImageWork, the importer currently cannot create ImageWork records.
-
Although the geo_works gem allows 2 types of Grid file (ASCII and binary), the importer currently only imports binary Grids.