Skip to content

Commit

Permalink
add html
Browse files Browse the repository at this point in the history
  • Loading branch information
wata909 committed Feb 21, 2016
1 parent 3354b18 commit e2a312c
Show file tree
Hide file tree
Showing 49 changed files with 5,280 additions and 20 deletions.
116 changes: 96 additions & 20 deletions 5339/html.bat
@@ -1,20 +1,96 @@
#パワーシェルにコピペして実行出来る

$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543922.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543922.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543923.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543923.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543924.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543924.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543912.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543912.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543913.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543913.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543914.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543914.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543902.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543902.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543903.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543903.html -Encoding UTF8
$html = Get-content .\rapid544000.html | % { $_ -replace "rapid544000.geojson", "rapid543904.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/geojson/", "http://wata909.github.io/habs_test/5439/geojson/" }
$html | Out-File rapid543904.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533901.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533901.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533902.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533902.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533903.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533903.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533904.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533904.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533905.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533905.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533906.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533906.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533907.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533907.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533911.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533911.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533912.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533912.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533913.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533913.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533914.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533914.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533915.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533915.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533916.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533916.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533917.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533917.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533922.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533922.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533923.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533923.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533924.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533924.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533925.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533925.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533926.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533926.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533932.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533932.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533933.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533933.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533934.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533934.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533935.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533935.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533936.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533936.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533937.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533937.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533942.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533942.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533943.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533943.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533944.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533944.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533945.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533945.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533946.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533946.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533947.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533947.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533952.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533952.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533953.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533953.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533954.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533954.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533955.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533955.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533956.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533956.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533957.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533957.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533962.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533962.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533963.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533963.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533964.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533964.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533965.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533965.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533966.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533966.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533972.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533972.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533973.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533973.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533974.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533974.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533975.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533975.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533976.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533976.html -Encoding UTF8
$html = Get-content .\rapid523926.html | % { $_ -replace "rapid523926.geojson", "rapid533977.geojson" } | % { $_ -replace "http://wata909.github.io/habs_test/5239/geojson/", "http://wata909.github.io/habs_test/5339/geojson/" }
$html | Out-File rapid533977.html -Encoding UTF8
108 changes: 108 additions & 0 deletions 5339/rapid533901.html
@@ -0,0 +1,108 @@

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HABS land use database test site</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="javascripts/leaflet.ajax.js"></script>


<style>
body {padding: 0; margin: 0}
html, body, #map {height: 100%; width: 100%;}
.leaflet-container {background: #fff;}
</style>
</head>

<body>
<div id="map">
<script>

var habs=L.tileLayer('http://habs.dc.affrc.go.jp/rapid16/{z}/{x}/{y}.png',
{
attribution: "<a href='http://habs.dc.affrc.go.jp/' target='_blank'>Historical Agro-Environment Browsing System</a>, <a href='https://creativecommons.org/licenses/by/2.1/jp/' target='_blank'>CC BY 2.1 jp</a>" ,
tms: true
}),

gsi_tile= L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png',
{
attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>GSI</a>"
});

// add geojson from file
var rapidgj = new L.GeoJSON.AJAX("http://wata909.github.io/habs_test/5339/geojson/rapid533901.geojson",{
pointToLayer: function (feature, latlng) {
var fColor;
if (feature.properties.code==1){
fColor="#FFFF00";}
else
if (feature.properties.code==2 ){
fColor="#aa5500";}
else
if (feature.properties.code==3 ){
fColor="#ffaaff";}
else
if (feature.properties.code==4 ){
fColor="#00aa00";}
else
if (feature.properties.code==5 ){
fColor="#ffaa00";}
else
if (feature.properties.code==6 ){
fColor="#c8c8c8";}
else
if (feature.properties.code==7 ){
fColor="#550000";}
else
if (feature.properties.code==8 ){
fColor="#aaaa7f";}
else
if (feature.properties.code==9 ){
fColor="#00ffff";}
else
if (feature.properties.code==10 ){
fColor="#0000FF";}
else
if (feature.properties.code==11 ){
fColor="#005500";}
else
if (feature.properties.code==12){
fColor="#aaaa7f";}
var cMarker = L.circleMarker(latlng, {
radius: 5,
fillColor: fColor,
weight: 1,
opacity: 0,
fillOpacity: 0.5
}).bindPopup("<b>ID:</b> "+feature.properties.id+"<br><b>Land use:</b> "+feature.properties.code);

return cMarker;
}
}
);


var map = L.map('map',
{
center: [35.686302, 139.776306],
zoom: 9,
maxZoom: 16,
layers: [habs, gsi_tile]});

var baseMaps = {
"GSI standard Tile": gsi_tile,
"The Rapid Survay Maps": habs
};

var overlayMaps = {
"Rapid Land Use": rapidgj
};

L.control.layers(baseMaps, overlayMaps).addTo(map);


</script>
</body>
</html>

0 comments on commit e2a312c

Please sign in to comment.