README is empty
README is empty
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/bash | |
# setup repository | |
sudo wget -qO- http://apt.opengeo.org/gpg.key | apt-key add - | |
sudo chmod 655 /etc/apt/sources.list | |
sudo echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list | |
sudo chmod 644 /etc/apt/sources.list | |
sudo apt-get update | |
# install opengeo suite |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background-color: green; | |
} | |
</style> |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>MaptimeDiliman Slippy Map</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>MaptimeDiliman Slippy Map</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> |
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
#get pairwise distances from rp and ponderosa datasets | |
xpairs <- crossdist(rp, ponderosa) | |
#Initialize vector container for X.2 | |
X.2 = numeric() | |
#Sort rows and get second nearest neighbor | |
for (i in 1:nrow(xpairs) { | |
x <- sort(xpairs[i,])[2] | |
X.2 <- append(X.2, x) |
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
#Get second nearest neighbors using knnx | |
x1 <- cbind(ponderosa$x, ponderosa$y) | |
x2 <- cbind(rp$x, rp$y) | |
nn2 <- get.knnx(x1, x2, 2) | |
X.2 <- nn2$nn.dist[,2] | |
X.22 <- X.2^2 | |
sumX.22 <- sum(X.22) |
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
#Get second nearest neighbors using crossdist | |
crossnn2 <- crossdist(rp, ponderosa) | |
X.2 <- crossnn2[,2] |
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
; | |
; pgShapeLoader (Linux): | |
; | |
Title=PostGIS Shapefile and DBF loader | |
Command=$$PGBINDIR/shp2pgsql-gui -U $$USERNAME -d $$DATABASE -p $$PORT -h $$HOSTNAME | |
Description=Open a PostGIS ESRI Shapefile or Plain dbf loader console to the current database. | |
KeyFile=$$PGBINDIR/shp2pgsql-gui | |
Platform=unix | |
ServerType=postgresql | |
Database=Yes |