Skip to content

Instantly share code, notes, and snippets.

@eliotjordan
eliotjordan / eainfo.xml
Last active January 3, 2016 12:29
Add support for Content Standard for Digital Geospatial Metadata (FGDC-STD-001-1998) Section 5.1 'Entity and Attribute Information - Detailed Description' to ESRI Geoportal Server metadata editor. Replace /WEB-INF/classes/gpt/gxe/fgdc/schema/eainfo/eainfo.xml with this file.
<?xml version="1.0" encoding="utf-8"?>
<!--
Entity and Attribute Information
eainfo (/metadata/eainfo)
From:
http://www.fgdc.gov/schemas/metadata/fgdc-std-001-1998-sect05.xsd
http://www.fgdc.gov/metadata/csdgm/05.html
-->
<g:element xmlns:g="http://www.esri.com/geoportal/gxe" xmlns:h="http://www.esri.com/geoportal/gxe/html" g:targetName="eainfo" g:i18nBase="catalog.fgdc.eainfo" g:label="$i18nBase" g:extends="$base/core/xml/Element.xml">
@eliotjordan
eliotjordan / copy.py
Created February 26, 2015 21:12
Copy ArcSDE
## From http://support.esri.com/en/knowledgebase/techarticles/detail/40831
import arcpy, os, string
def CopyDatasets(start_db,end_db,num):
#Set workspaces
arcpy.env.workspace = start_db
wk2 = end_db
@eliotjordan
eliotjordan / gist:116e05a64c499eb2b3a7
Created March 18, 2015 18:35
geoblacklight-docker
FROM ubuntu:14.04
MAINTAINER Eliot Jordan <eliot.jordan@gmail.com>
RUN apt-get update && apt-get -y install \
unzip \
wget \
git \
curl \
libpq-dev \
postgresql-client \
Cribbed from: hortongn/3518faa5a9d638f83141
Configure Jetty for Sufia
rake jetty:stop; rake jetty:clean; rake sufia:jetty:config; rake jetty:start
Add Fits to your path
export PATH=$PATH:<path to Fits>
Add OpenOffice executable (soffice) to path
export PATH=$PATH:/Applications/LibreOffice.app/Contents/MacOS
@eliotjordan
eliotjordan / gist:1db7714938f48df40c3341f77e108478
Created July 20, 2016 18:21
macos slow bundle install fix
My mac has an issue loading ruby gems from https://rubygems.org/. Until the root cause resolved, this workaround is helpful.
Setup a mirror:
$ bundle config mirror.https://rubygems.org http://rubygems.org
From http://stackoverflow.com/a/34940426
@eliotjordan
eliotjordan / mapnik-for-ubuntu.txt
Created September 14, 2016 18:51
Install geo_concerns mapnik deps on ubuntu
apt-get update && apt-get install -y software-properties-common
add-apt-repository -y ppa:mapnik/nightly-2.3
apt-get update && apt-get upgrade -y && \
apt-get -y install \
gdal-bin \
libmapnik \
libmapnik-dev \
mapnik-utils \
mapnik-input-plugin-gdal \
mapnik-input-plugin-ogr
@eliotjordan
eliotjordan / gist:fd2a11495d2bb70895fba23d457dd4d6
Created October 10, 2016 20:00
Rubygems SSL certificate error fix
http://railsapps.github.io/openssl-certificate-verify-failed.html
$ rvm osx-ssl-certs status all
$ rvm osx-ssl-certs update all
https://github.com/rubygems/rubygems/issues/1736
brew update
brew install openssl
brew tap raggi/ale

Keybase proof

I hereby claim:

  • I am eliotjordan on github.
  • I am eliotjordan (https://keybase.io/eliotjordan) on keybase.
  • I have a public key whose fingerprint is FCDC D3BC C712 8F51 FC82 51BD DE7D CA89 0365 9642

To claim this, I am signing this object:

@eliotjordan
eliotjordan / gbl-dcat-distribution.json
Created July 24, 2017 19:32
Demo GeoBlacklight Doc for DCAT:Distribution
{
"dc_identifier_s": "http://hdl.handle.net/2451/38625",
"dc_title_s": "2015 LiDAR Flight 150326_115601 for Dublin City",
"dc_description_s": "This record contains aerial laser scanning (ALS) and photogrammetry data that corresponds to Flight 150326_115601, which is one part of data that was collected over an area of more than 2km² in Dublin, Ireland in 2015 and includes 3D point-cloud (LAZ), 3D full waveform LiDAR (LAS and Pulsewave), and ortho-rectified 2D rasters. Over 1.4 billion laser points were acquired (inclusive of partially covered areas). ALS was carried out by contractors using a TopEye system S/N 443. Imagery data was captured using a Phase One camera system. The average flying altitude was 300m with the total of 41 flight paths. This data was collected with funding from European Research Council Consolidator project RETURN – Rethinking Tunnelling in Urban Neighbourhoods [ERC-2012- StG-307836] and additional funding from Science Foundation Ireland [12/ERC/I2534]. For more information on th
@eliotjordan
eliotjordan / gbl-2-0.json
Created October 26, 2017 19:00
Proposed GeoBlacklight 2.0 Solr Document
{
"geoblacklight_version": "2.0",
"dc_identifier_s": "http://purl.stanford.edu/cz128vq0535",
"dc_title_s": "2005 Rural Poverty GIS Database: Uganda",
"dc_description_s": "This polygon shapefile contains 2005 poverty data for 855 rural subcounties in Uganda. These data are intended for researchers, students, policy makers and the general public for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production.",
"dc_rights_s": "http://rightsstatements.org/vocab/NoC-OKLR/1.0/",
"dc_rights_holder_sm": [
"Stanford University"
],
"dc_visibility_s": "Public",