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
input { | |
http_poller { | |
id => "production ArcGIS Servers" | |
urls => { | |
ngdc => "https://gis.ngdc.noaa.gov/arcgis/rest/info/healthCheck?f=json" | |
ncdc => { | |
# Supports all options supported by ruby's Manticore HTTP client | |
method => get | |
url => "https://gis.ncdc.noaa.gov/arcgis/rest/info/healthCheck?f=json" | |
headers => { |
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
@Grab(group='com.vividsolutions', module='jts', version='1.13') | |
import com.vividsolutions.jts.io.WKTReader | |
import com.vividsolutions.jts.geom.* | |
import com.vividsolutions.jts.precision.* | |
def wktReader = new WKTReader() | |
def wktString = new File('/Users/jcc/Downloads/wkt.txt').text | |
GeometryFactory geometryFactory = new GeometryFactory(new PrecisionModel(), 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
def cellResolution = 0.004166666666666667 | |
println roundTo(35.8912, cellResolution) | |
def roundTo(dd, cellResolution) { | |
//convert to arcseconds | |
def interval = Math.round(cellResolution * 3600) | |
def coord = Math.round(dd * 3600) | |
def adjustedCoord = interval * Math.round(coord / interval) |
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
import arcpy | |
from arcpy import env | |
from arcpy.sa import * | |
import numpy as np | |
arcpy.CheckOutExtension("Spatial") | |
#env.workspace = "C:/Users/jcc/Desktop/bathy" | |
#inRaster = "NH18_SID_ReclassedBathy.tif" | |
clipEnvelope = arcpy.GetParameter(0) |
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
import java.util.zip.* | |
import java.nio.channels.* | |
ZipOutputStream zipFile = new ZipOutputStream(new FileOutputStream('testme.zip')) | |
zipFile.putNextEntry(new ZipEntry('testme.txt')) | |
zipFile.write('Hello World!'.bytes) | |
zipFile.write('one\n'.bytes) | |
zipFile.write('two\n'.bytes) |
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 http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> | |
<title>Simple Map</title> | |
<link rel="stylesheet" href="https://js.arcgis.com/3.23/esri/css/esri.css"> | |
<!--<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/3.23/esri/dijit/analysis/ExtractData.css"/>--> | |
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/3.23/esri/css/widgets-1.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
@Grapes([ | |
@Grab(group='com.vividsolutions', module='jts-core', version='1.14.0'), | |
@Grab(group='com.vividsolutions', module='jts-io', version='1.14.0'), | |
@Grab(group='org.locationtech.spatial4j', module='spatial4j', version='0.6') | |
]) | |
import com.vividsolutions.jts.io.WKTReader | |
import com.vividsolutions.jts.geom.* | |
import org.locationtech.spatial4j.shape.jts.* | |
import org.locationtech.spatial4j.context.jts.* |
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 http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> | |
<title>Identify with Popup</title> | |
<link rel="stylesheet" href="https://js.arcgis.com/3.21/esri/css/esri.css"> | |
<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
<?xml version="1.0" encoding="UTF-8"?> | |
<StyledLayerDescriptor | |
xmlns="http://www.opengis.net/sld" | |
xmlns:ogc="http://www.opengis.net/ogc" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
version="1.0.0" | |
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"> | |
<NamedLayer> | |
<Name>lines</Name> |
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
apply plugin: 'java' | |
repositories { | |
maven { | |
url 'http://artifacts.unidata.ucar.edu/content/repositories/unidata-releases' | |
} | |
} | |
configurations { | |
toolsUIRuntime |