Say you want to set the homeCamera
for your TerriaMap, in simple.json
.
{
"homeCamera": {
"north": -8,
"east": 158,
"south": -45,
"west": 109
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"name": "USA States (Ahocevar)", |
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"type": "esri-featureServer", |
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"type": "3d-tiles", |
import java.util.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int n = scanner.nextInt(); | |
int m = scanner.nextInt(); | |
int k = scanner.nextInt(); |
import java.util.Scanner; | |
class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int myIntA; | |
int myIntB = sc.nextInt(); | |
boolean ascendingResult = true; | |
boolean descendingResult = true; |
import java.util.Scanner; | |
public class Main { | |
public static int getNumberOfMaxParam(int a, int b, int c) { | |
int result = 1; | |
if (b > a) { | |
result = 2; | |
if (c > b) { | |
result = 3; |
# Title of Script: buffer_all_layers.py | |
# Description: Takes a map document, workspace, and buffer distance. | |
# Creates a buffered layer for each layer in the map document. Names buffered layers as: <original name>_buffer. | |
# If output name already exists, the naming convention | |
# Inserts buffered layer below original layer in TOC. | |
# Map documents with multiple dataframes are allowed, will be processed iteratively. | |
# Author: Stafford Smith | |
# Creation date: 26/10/2019 (SS) | |
# Last update: 30/10/2019 (SS) |
from pathlib import Path | |
import pandas as pd | |
import geopandas as gpd | |
from shapely.geometry import Point | |
def main(): | |
poi = get_poi_csv() | |
# print(poi) |
class Bearing: | |
"""Class with one variable - angle. Intended to store bearings in degrees. | |
Values must be between 0 and 360 inclusive. Included methods - dd2dms(object). | |
Will return the degrees minutes seconds value of the bearing stored in the object. | |
Syntax - Bearing.dd2dms(my_bearing)""" | |
def __init__(self, angle=360): | |
# underscore(_) is used to denote private members | |
self._angle = angle |