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
/** | |
* @author Eberhard Graether / http://egraether.com/ | |
*/ | |
THREE.TrackballControls = function ( object, domElement ) { | |
var _this = this; | |
var STATE = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM: 4, TOUCH_PAN: 5 }; | |
this.object = object; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Some GEO oneliners that make my life easier. | |
# Dissolve Shapefiles using OGR from an attribute table | |
# http://darrencope.com/2015/01/23/dissolve-shapefiles-using-ogr/ | |
ogr2ogr outputfile.shp inputfile.shp \ | |
-dialect sqlite -sql “SELECT dissolvefield,ST_Union(geometry) \ | |
as geometry FROM inputfile GROUP BY dissolvefield” | |
# Dissolve everything http://gis.stackexchange.com/questions/79850/merge-large-number-of-polygons-using-qgis | |
ogr2ogr -dialect SQLITE -sql "SELECT ST_Union(geometry) FROM input" output.shp input.shp |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 -x | |
############################################################################ | |
# | |
# MODULE: r.hillshade.multi | |
# | |
# AUTHOR(S): Emmanuel Sambale esambale@yahoo.com emmanuel.sambale@gmail.com | |
# with comments and improvement from the GRASS user mailing list. | |
# | |
# PURPOSE: Creates a multidirectional, oblique-weighted, shaded-relief image | |
# from an input DEM image. Original ARC 6.0.1 GRID procedure was |
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 -x | |
# | |
############################################################################ | |
# | |
# MODULE: import_palsar.sh | |
# AUTHOR(S): Maning Sambale - http://www.essc.org.ph | |
# PURPOSE: Import PALSAR 25m data to GRASS GIS | |
# | |
# | |
# COPYRIGHT: (C) 2013 Maning Sambale, ESSC |
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 -x | |
############################################################################ | |
# | |
# MODULE: r.forestfrag | |
# | |
# AUTHOR(S): Emmanuel Sambale [hidden email] [hidden email] | |
# | |
# PURPOSE: Creates forest fragmentation index map from a raster vegetation file | |
# The index map was based on Riitters, K., J. Wickham, R. O'Neill, B. Jones, | |
# and E. Smith. 2000. Global-scale patterns of forest fragmentation. Conservation |