Use the Query operation on the service, aksing for:
- f=json json format
- fields=*
- geometryType=esriGeometryEnvelope
- geometry=...
{ | |
"metadata" : { | |
"name" : "QPlot", | |
"user_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"auto_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"language_info" : { | |
"name" : "scala", | |
"file_extension" : "scala", | |
"codemirror_mode" : "text/x-scala" | |
}, |
{ | |
"metadata" : { | |
"name" : "GraphFramesExample", | |
"user_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"auto_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"language_info" : { | |
"name" : "scala", | |
"file_extension" : "scala", | |
"codemirror_mode" : "text/x-scala" | |
}, |
libraryDependencies += "junit" % "junit" % "4.11" % "test" | |
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test" | |
javaSource in Test := baseDirectory.value / "test" | |
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v") | |
javacOptions ++= Seq("-source", "1.8") |
val l:List[A] | |
val m[K,V]:A=>List[(K, V)] | |
val r[V]:List[V]=>V | |
val s[K]:K=>K | |
l .flatMap(m) | |
.groupBy(_._1) // map phase | |
.mapValues(_.map(_._2)) | |
.groupBy{case (x, xs) => s(x) } // shuffled | |
.mapValues(_.map{case (x,xs) => (x, r(xs))}) // reduced |
//def | |
val l:List[A] | |
val m[K,V]:A=>List[(K, V)] | |
val r[V]:List[V]=>V | |
val s[K]:K=>K | |
//mr | |
l.flatMap(m) | |
.groupBy(_._1) | |
.mapValues(_.map(_._2)) |
package spark | |
import spark.util.AkkaUtils | |
object SparkAkka { | |
private[this] lazy val config = be.bigdata.p2.conf.root.getConfig("deploy.akka") | |
lazy val name = config.getString("name") | |
lazy val host = config.getString("host") | |
lazy val port = config.getInt("port") | |
lazy val actorSystem = AkkaUtils.createActorSystem(name, host, port)._1 |
object conway { | |
def neighbours(p:(Int, Int)) = | |
for { | |
dx <- List(-1, 0, 1) | |
dy <- if (dx == 0) List(-1, 1) else List(-1, 0, 1) | |
} yield (dx+p._1, dy+p._2) | |
def step(cells:List[(Int, Int)]) = | |
cells |
package cocontra | |
import model._ | |
object Co extends App { | |
val kids = List(new Kid(9)) | |
val humans:List[Human] = kids | |
println(humans) |
/* | |
First implementation of a Matrix String Interpolator. | |
This is a manipulable matrix strucutre | |
mat""" | |
| 1 | 2 | |
| 3 | | |
""" | |
*/ | |
object Mat { |