CREATE EXTERNAL TABLE IF NOT EXISTS roads (Name string, Layer string, Shape binary)
ROW FORMAT SERDE 'com.esri.hadoop.hive.serde.JsonSerde'
STORED AS INPUTFORMAT 'com.esri.json.hadoop.EnclosedJsonInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION '${env:HOME}/sampledata/roads';
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('EventController', | |
['$scope', '$compile', '$timeout', function($scope, $compile, $timeout) { | |
var map = new OpenLayers.Map("map"); | |
var osm = new OpenLayers.Layer.OSM(); | |
var style = new OpenLayers.Style(); | |
var ruleLow = new OpenLayers.Rule({ | |
filter: new OpenLayers.Filter.Function({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('OpenLayersApp', []); | |
app.controller('EventController', | |
['$scope', '$compile', '$timeout', function($scope, $compile, $timeout) { | |
var map = new OpenLayers.Map("map", { | |
projection: "EPSG:102113", | |
units: "m" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml" xmlns:bufferAnalyse_Buffer="http://nassvr.com:6080/arcgis/services/bufferAnalyse/Buffer/GPServer/WPSServer" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nassvr.com:6080/arcgis/services/bufferAnalyse/Buffer/GPServer/WPSServer http://10.144.167.24:6080/arcgis/services/bufferAnalyse/Buffer/GPServer/WPSServer?request=getschema%26version=1.0.0%26service=WPS%26identifier=Buffer%26parameter=out_feature_class"> | |
<gml:boundedBy> | |
<gml:Envelope srsName="urn:ogc:def:crs:EPSG:6.9:4326"> | |
<gml:lowerCorner>25.434950352377712 -120.85450040476928</gml:lowerCorner> | |
<gml:upperCorner>46.235549479625718 -70.579373672955967</gml:upperCorner> | |
</gml:Envelope> | |
</gml:boundedBy> | |
<gml:featureMember> | |
<bufferAnalyse_Buffer:out_feature_class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'base64' | |
require 'exifr' | |
def to_decimal(dms) | |
dms[0].to_f + dms[1].to_f / 60 + dms[2].to_f / 3600 | |
end | |
def to_geojson(exif) | |
lat_exif = exif.gps_latitude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> | |
</head> | |
<body> | |
<div style="width:500px; height:500px" id="map"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph gis_frontend{ | |
fontname="Microsoft YaHei"; | |
fontsize=12; | |
rankdir=LR; | |
splines=line; | |
node [shape="Mrecord", fontname="Microsoft YaHei", fontsize=10]; | |
edge [color="#F1C40F", fontname="Microsoft YaHei", fontsize=10]; | |
openlayers [shape="none", image="OpenLayers.trac.png", label=""]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>A Simple Map</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/d3.hexbin.v0.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>fs.default.name</name> | |
<value>hdfs://ubuntu:9000</value> | |
</property> | |
<property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>fs.default.name</name> | |
<value>hdfs://nameservice1:8020/</value> | |
</property> | |
<property> | |
<name>fs.defaultFS</name> | |
<value>hdfs://nameservice1:8020/</value> | |
</property> | |
<property> | |
<name>mapreduce.framework.name</name> |