Git Product home page Git Product logo

geoloader's Introduction

Geoloader

Geoloader is a simple little gem that automates the process of loading geospatial catalog holdings (for now, GeoTIFFs and Shapfiles) into the software stack used to power the spatial search interface at the University of Virginia Library - PostGIS, Geoserver, and Geonetwork.

Usage

First, provide connection parameters in a YAML configuration file (see .geoloader.example):

postgis:
  host:       "localhost"
  port:       "5432"
  username:   "admin"
  password:   "admin"

geoserver:
  url:        "http://localhost:8080/geoserver/rest"
  username:   "admin"
  password:   "geoserver"
  workspace:  "geoloader"
  srs:        "EPSG:900913"

geonetwork:
  url:        "http://localhost:8080/geonetwork/srv/en"
  username:   "admin"
  password:   "admin"
  group:      "2"

Then, use Geoloader programmatically in code:

require 'geoloader'

# Point Geoloader at a configuration file.
Geoloader.config_from_yaml("/path/to/config.yaml")

# Load a GeoTIFF.
load_tiff = Geoloader::GeotiffLoader.new("/path/to/file.tif")
loader.work

# Load a Shapefile.
load_shp = Geoloader::ShapefileLoader.new("/path/to/file.shp")
loader.work

Or as a command line utility, with global YAML settings in ~/.geoloader:

geoloader load /var/spatial/nyc.tif
geoloader load /var/spatial/nyc.shp

geoloader's People

Contributors

davidmcclure avatar

Watchers

James Cloos avatar Brian Tonnies avatar

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.