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
#!/bin/sh | |
mv front/SCENE01/METADATA.DIM front/SCENE01/METADATA_FRONT.DIM | |
mv back/SCENE01/METADATA.DIM back/SCENE01/METADATA_BACK.DIM | |
bundle_adjust -t spot5 front/SCENE01/IMAGERY.TIF back/SCENE01/IMAGERY.TIF front/SCENE01/METADATA_FRONT.DIM back/SCENE01/METADATA_BACK.DIM -o ba_run/out | |
# parallel_stereo -t spot5 front/SCENE01/IMAGERY.TIF back/SCENE01/IMAGERY.TIF front/SCENE01/METADATA_FRONT.DIM back/SCENE01/METADATA_BACK.DIM st_run/out --bundle-adjust-prefix ba_run/out | |
add_spot_rpc front/SCENE01/METADATA_FRONT.DIM -o front/SCENE01/METADATA_FRONT.DIM |
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
# | |
apt-get install openjdk-8-jre | |
# PostgreSQL and PostGIS | |
apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4 | |
# Create "geoserver" database | |
sudo -u postgres createuser -P geoserver | |
sudo -u postgres createdb -O geoserver geoserver | |
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver |
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
{% load static %} | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>List of all Buildings</title> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | |
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" |
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
# If you want to import the database using earth.sql file, try this command | |
psql -U postgres -h localhost -p 5432 < earth.sql | |
# If you want to import the database using earthquake.gz file, try this command | |
gzip -d -c earthquake.gz| sed -e '/AS integer/d' | psql -U postgres -h localhost -p 5432 -W earthquake |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"> | |
<style> | |
#map { | |
width: 100%; | |
height: 500px; | |
} | |
</style> | |
</head> |
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
//Geoserver Web Feature Service | |
$.ajax('http://localhost:8080/geoserver/wfs',{ | |
type: 'GET', | |
data: { | |
service: 'WFS', | |
version: '1.1.0', | |
request: 'GetFeature', | |
typename: 'workspace:layer_name', | |
srsname: 'EPSG:4326', | |
outputFormat: 'text/javascript', |
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 region defined | |
var region = $('#inputGroupSelect01').val() | |
region = $('#inputGroupSelect01').change(function() { | |
$(this).val() | |
}); | |
//button click events | |
$('#load').click(function () { | |
//hazardLayer | |
var hazardLayer = L.tileLayer.wms("http://localhost:8080/geoserver/tajikistan/wms", { |
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
//Geoserver Web Feature Service | |
$.ajax('http://localhost:8080/geoserver/wfs',{ | |
type: 'GET', | |
data: { | |
service: 'WFS', | |
version: '1.1.0', | |
request: 'GetFeature', | |
typename: 'tajikistan:country', | |
CQL_FILTER: `name_rg='Centre'`, | |
srsname: 'EPSG:4326', |
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
//load wms form geoserver | |
const mywms = L.tileLayer.wms("http://localhost:8080/geoserver/tajikistan/wms", { | |
layers: 'tajikistan:country1', | |
format: 'image/png', | |
transparent: true, | |
version: '1.1.0', | |
attribution: "country layer" | |
}); | |
mywms.addTo(map); |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
<style> | |
#map { | |
width: 100%; | |
height: 500px; | |
} | |
</style> |
NewerOlder