Skip to content

100.6.0 #400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 127 commits into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
8473b0c
update api version
tschie Oct 19, 2018
51f7c30
change api version to 100.5.0
tschie Oct 19, 2018
6349008
Merge branch 'master' into dev
tschie Oct 19, 2018
b791ff8
Merge branch 'dev' into 100.5.0
tschie Oct 19, 2018
6d1ba27
change version to 100.5.0
tschie Oct 19, 2018
1f322ee
Merge branch 'master' into dev
tschie Oct 22, 2018
a240829
Merge branch 'master' into 100.5.0
tschie Oct 22, 2018
3d6ab90
Merge branch 'master' into 100.5.0
tschie Oct 23, 2018
26a21ab
Merge branch '100.5.0' into dev
tschie Oct 23, 2018
e05b73e
Merge branch 'master' into dev
tschie Oct 23, 2018
8f58533
Merge branch 'master' into dev
tschie Oct 25, 2018
75dc3a5
start updates for java 11
tschie Nov 2, 2018
e0e545c
Merge branch 'master' into dev
tschie Nov 12, 2018
8145835
Merge pull request #288 from Esri/master
Rachael-E Nov 19, 2018
a8903f0
update java 11 parts
tschie Nov 26, 2018
82e7a94
add dependencies for all platforms
tschie Nov 26, 2018
2ce991f
Delete module-info.java
tschie Nov 26, 2018
d99fad3
Merge branch 'dev' into java-11
tschie Nov 26, 2018
c8e1c13
Merge branch 'master' into dev
tschie Nov 30, 2018
d45d1ae
Merge branch 'dev' into java-11
tschie Nov 30, 2018
56ed0d5
Merge pull request #289 from Esri/java-11
tschie Nov 30, 2018
52fb4c9
Merge pull request #293 from Esri/master
Rachael-E Dec 12, 2018
42f678b
Merge branch 'master' into dev
tschie Dec 14, 2018
3a22cbb
Merge pull request #298 from Esri/master
Rachael-E Dec 18, 2018
c43331e
Merge branch 'master' into dev
tschie Dec 19, 2018
db8110b
Merge pull request #300 from Esri/master
Rachael-E Dec 21, 2018
9f2204b
Update README
Rachael-E Dec 21, 2018
a56fbdd
Update README.md
tschie Dec 21, 2018
11285fd
Merge pull request #301 from Esri/Rachael-E-patch-1
tschie Dec 21, 2018
894ed41
Merge branch 'master' into dev
tschie Dec 21, 2018
baa2198
add an integrated mesh layer sample
tschie Jan 23, 2019
b133f58
update arcgis version
tschie Jan 23, 2019
5abbed5
use javafx plugin
tschie Jan 23, 2019
2757bb5
Merge branch 'dev' into add-an-integrated-mesh-layer
tschie Jan 23, 2019
0709cbe
Merge branch 'master' into dev
tschie Jan 23, 2019
0da0c29
remove jar task config
tschie Jan 23, 2019
e1edbfe
Merge pull request #306 from Esri/add-an-integrated-mesh-layer
tschie Jan 24, 2019
f93980f
update arcgis version
tschie Jan 31, 2019
f3289a2
move stage show
tschie Jan 31, 2019
426642c
Merge pull request #309 from Esri/master
Rachael-E Feb 1, 2019
32f2a9c
Merge pull request #312 from Esri/master
Rachael-E Feb 5, 2019
b7f9b3e
Merge branch 'master' into dev
tschie Feb 5, 2019
1cb389b
Merge branch 'master' into dev
tschie Feb 5, 2019
9c53786
add point cloud data to sample data downloads
tschie Feb 5, 2019
f75253d
view point cloud data offline sample
tschie Feb 5, 2019
52c3a6d
Update build.gradle
tschie Feb 5, 2019
0a62a7d
change camera viewpoint
tschie Feb 5, 2019
1273c6e
remove unused imports
tschie Feb 5, 2019
1b0a836
update image
tschie Feb 11, 2019
d0776e4
update api version
tschie Feb 11, 2019
6e783c5
Merge pull request #316 from Esri/master
Rachael-E Feb 11, 2019
e4458f6
Merge branch 'master' into dev
tschie Feb 12, 2019
664f09a
edit about the data and additional info sections
tschie Feb 12, 2019
9cb7eae
fix comment
tschie Feb 12, 2019
93ca670
Merge pull request #315 from Esri/view-point-cloud-data-offline
tschie Feb 12, 2019
2c77dbe
Merge pull request #317 from Esri/master
Rachael-E Feb 12, 2019
dbd6a55
Removed errant full stop
Rachael-E Feb 12, 2019
1771bdb
Open Mobile Scene Package (#318)
Rachael-E Feb 20, 2019
3b7f5fe
Merge branch 'master' into dev
tschie Feb 25, 2019
8f9cdce
Map reference scale (#319)
Rachael-E Feb 26, 2019
8f95d99
Corrected title for sample
Rachael-E Mar 12, 2019
a4b8182
Merge master into dev (#322)
Rachael-E Mar 12, 2019
68e1108
Allow downloading of non zip sample data (#324)
tschie Mar 14, 2019
e006134
point scene layer sample (#323)
tschie Mar 15, 2019
f4d7324
Merge master into Dev (#329)
Rachael-E Mar 22, 2019
d144362
remove online elevation data source (#327)
Rachael-E Mar 22, 2019
d3995bf
View content beneath terrain surface (#325)
Rachael-E Mar 25, 2019
4f2f4e4
group layers sample (#331)
tschie Apr 1, 2019
cf7d52a
update version, delete extra copy of samples data
tschie Apr 1, 2019
904fb55
Play kml tours (#332)
tschie Apr 2, 2019
23e4ac2
Generate offline map with local basemap (#330)
Rachael-E Apr 3, 2019
d0c154e
Merge branch 'master' into dev
tschie Apr 4, 2019
3c7277f
pull master
tschie Apr 19, 2019
2aa00c0
Merge branch 'master' into dev
tschie Apr 23, 2019
a49a3c3
Merge branch 'master' into dev
tschie Apr 25, 2019
ba83866
Merging Master into Dev (#345)
JonLavi May 9, 2019
f84ee58
Merge `master` into `dev` (#350)
JonLavi May 17, 2019
dcecafd
merge master into dev
tschie May 28, 2019
573ae5a
Update build.gradle
tschie May 28, 2019
6cd0efc
Allows user to click a value on slider to change exaggeration (#351) …
Rachael-E May 31, 2019
ca64f2f
merge master into dev for ClosestFacilityStatic (#358)
JonLavi Jun 6, 2019
1e9a0e5
Merge branch 'master' into dev
tschie Jun 7, 2019
f876451
merge master into dev (#362)
JonLavi Jun 11, 2019
a82995b
Merge branch 'master' into dev
tschie Jun 12, 2019
1098e89
merge master into dev (#368)
JonLavi Jun 19, 2019
308013d
merge master into dev - oAuth Sample patch (#369)
JonLavi Jun 20, 2019
f3fb3a4
Tschie/split (#387)
tschie Jul 17, 2019
2875d99
fix naming
tschie Jul 18, 2019
9aac5f2
Routing around barriers (#354)
JonLavi Jul 23, 2019
23ec025
Find service areas for multiple facilities (#367)
JonLavi Jul 23, 2019
9bf071f
update screenshot
JonLavi Jul 23, 2019
02b7738
Merge branch 'patch/routing-around-barriers-screenshot' into dev
JonLavi Jul 23, 2019
23866d2
update screenshot
JonLavi Jul 23, 2019
7fbcda6
Fix comment in ColormapRendererSample.java (#391)
philium Jul 23, 2019
43f8fa3
Patch/create and save map - default challenge handler (#388)
JonLavi Jul 24, 2019
f295325
Read symbols from mobile style file (#357)
JonLavi Jul 25, 2019
7b3ca50
Update geopackage sample (#374)
JonLavi Jul 25, 2019
27ad40b
add readme metadata file
tschie Jul 25, 2019
38e3edf
Patch/oauth default challenge handler (#375)
JonLavi Jul 30, 2019
aa285f8
remove extra comma
tschie Jul 31, 2019
1e1c415
Routing around barriers - add isStillSincePress to mouse events (#394)
JonLavi Aug 1, 2019
2288f97
oauth - README.metadata.json formatting (#395)
JonLavi Aug 1, 2019
d2ea64b
mmpk to class member (#398)
JonLavi Aug 6, 2019
8dc5b67
Merge branch 'master' into 100.6.0
tschie Aug 6, 2019
f00d337
Patch/dictionary symbol style update constructor (#393)
JonLavi Aug 6, 2019
dc340c2
Patch/geometry engine simplify - add isSimple check (#399)
JonLavi Aug 8, 2019
1a56d07
Integrated windows auth (#370)
JonLavi Aug 8, 2019
2d92654
update README.md for screenshot link (#403)
JonLavi Aug 8, 2019
b209569
Integrated windows auth - update README.metadata.json (#402)
JonLavi Aug 8, 2019
0e5fc1d
move local data download logic to settings.gradle (#401)
tschie Aug 9, 2019
8e43124
fixing data download for mil2505 xml file for sample viewer v2504 (#404)
JonLavi Aug 9, 2019
71375c3
fix typo
tschie Aug 9, 2019
eae4977
fix directory name
tschie Aug 9, 2019
ec32af9
Merge branch 'dev' into 100.6.0
tschie Aug 9, 2019
0a4cca8
fix local data folder
tschie Aug 12, 2019
d64ad14
Merge branch 'dev' into 100.6.0
tschie Aug 13, 2019
ad1b8f1
update arcgis version to 100.6.0
tschie Aug 13, 2019
c1c2b6d
put native libraries in .arcgis folder
tschie Aug 13, 2019
3d53bc5
Merge branch 'dev' into 100.6.0
tschie Aug 13, 2019
5cf8674
Honor mmpk expiration (#397)
JonLavi Aug 13, 2019
959a101
Set annotation sublayer visibility (#396)
JonLavi Aug 13, 2019
0ad8b73
Merge branch 'dev' into 100.6.0
tschie Aug 13, 2019
8e84ed4
update arcgis version to 100.6.0
tschie Aug 13, 2019
1ab3657
Update README.md
tschie Aug 13, 2019
a0a5828
remove IDE images
tschie Aug 19, 2019
e379963
remove extra newline
tschie Aug 21, 2019
130c0e7
add bintray download badge
tschie Aug 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# ArcGIS Java SDK
data.zip*
bin/
build/
out/

# Local configuration file (sdk path, etc)
local.properties
.gradle/
/samples-data/
/jniLibs/
/resources/
samples-data/

# Intellij project files
*.ipr
Expand Down
86 changes: 37 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,68 @@
# ArcGIS Runtime Java SDK Samples
### 100.5.0
This project includes a set of samples demonstrating how to accomplish various mapping and GIS tasks with the ArcGIS Runtime SDK for Java.

Be sure to also check out our [toolkit on GitHub](https://github.com/Esri/arcgis-runtime-toolkit-java).
[ ![Download](https://api.bintray.com/packages/esri/arcgis/arcgis-java/images/download.svg) ](https://bintray.com/esri/arcgis/arcgis-java/_latestVersion)

These samples are built with Gradle. If you want to learn more about Gradle, learn more from [Gradle's guide](https://docs.gradle.org/current/userguide/userguide.html).
This repo contains a set of sample projects demonstrating how to accomplish various mapping and GIS tasks with the ArcGIS Runtime SDK for Java.

This guide has instructions for running samples using the command line or with Eclipse and IntelliJ IDEA.
Browse the category directories to explore the samples. Each sample is an individual [Gradle](https://docs.gradle.org/current/userguide/userguide.html) project that can be run standalone. The Gradle buildscripts have tasks for running the application, building a jar, and distributing the app as a zip.

For developers new to Git, please see the wiki page for how to [clone this repository](https://github.com/Esri/arcgis-runtime-samples-java/wiki/working-with-git).
Installing Gradle is not necessary since each sample includes the Gradle wrapper.

## Running the Samples
To run the samples in a terminal, `cd` into the project and call the gradle `run` task, supplying the sample main class:
## Instructions

On Linux/Mac
```
$ ./gradlew run -PmainClass="com.esri.samples.scene.display_scene.DisplaySceneSample"
```
### IntelliJ IDEA

On Windows
```
> gradlew.bat run -PmainClass="com.esri.samples.scene.display_scene.DisplaySceneSample"
```
1. Open IntelliJ IDEA and select _File > Open..._.
2. Choose one of the sample project directories (not the category folder) and click _OK_.
3. Select _File > Project Structure..._ and ensure that the Project SDK and language level are set to use Java 11.
4. Open the Gradle view with _View > Tool Windows > Gradle_.
5. In the Gradle view, double-click the `run` task under _Tasks > application_ to run the app.

### Eclipse

1. Open Eclipse and select _File > Import_.
2. In the import wizard, choose _Gradle > Existing Gradle Project_, then click _Next_.
3. Choose one of the sample project directories (not the category folder) as the project root directory.
4. Click _Finish_ to complete the import.
5. Open the Gradle Tasks view with _Window > Show View > Other... > Gradle > Gradle Tasks_.
6. In the Gradle Tasks view, double-click the `run` task under _{project_name} > application_ to run the app.

If no `mainClass` property is supplied, the default sample (set in the build.gradle file) will be run.
### Terminal

There is no need to install Gradle to run the samples.
1. `cd` into one of the sample project directories (not the category folder).
2. Run `./gradlew run` on Linux/Mac or `gradlew.bat run` on Windows to run the app.

## Java 11
### Java 11
Java 11 users may find exceptions when running the project if their library path is still set for Oracle JDK 1.8 (see the [OpenJavaFX docs](https://openjfx.io/openjfx-docs/) for more information). A workaround for this is to add the following argument in the `run` task of the Gradle buildscript:
```
systemProperty "java.library.path", "C:\tmp"
```

## Offline sample data
Some samples require offline data. A `samples-data` directory will automatically download to the project root the
first time you call the `run` task.

## Importing into an IDE
We will step through how to import the Samples project into Eclipse and IntelliJ IDEA. Other IDEs may support Gradle too. Please consult their documentation for importing Gradle projects.

### IntelliJ IDEA
After cloning the samples, open IntelliJ IDEA and follow these steps:

1. Click *Import Projects* from the Welcome Screen or select *File > New > Project from Existing Sources*.
2. In the select path dialog, select the `build.gradle` file in the `arcgis-runtime-samples-java` directory. Click *OK* after specifying the `build.gradle` file.
3. Click *OK* at the next dialog to complete the import.
### Offline sample data
Some samples require offline data. A `samples-data` directory will automatically download to the project root the first time you call the `run` task. To refresh the data, you can run the `clean` and `unpackData` tasks.

<img src="./intellij_proj.png" alt="IntelliJ IDEA project structure" height="200">
## Requirements

To view all of the gradle tasks including the Run task, go to *View > Tool Windows > Gradle*.

Alternatively, you can open the sample's main class, right-click, and select *Run* from the dropdown menu.

### Eclipse
To import the samples with Eclipse's default gradle plugin, follow these steps:

1. Open Eclipse and select *File > Import*.
2. In the import wizard, choose *Gradle > Gradle Project*, then click Next.
3. Select the `arcgis-runtime-samples-java` directory as the project root directory.
4. Click *finish* to complete the import.

<img src="./eclipse_proj.png" alt="Eclipse project structure" height="200">
See the Runtime SDK's [system requirements](https://developers.arcgis.com/java/latest/guide/system-requirements-for-quartz.htm).

## Resources

* [ArcGIS Runtime SDK for Java](https://developers.arcgis.com/java/)
* [Toolkit](https://github.com/Esri/arcgis-runtime-toolkit-java)
* [ArcGIS Blog](https://blogs.esri.com/esri/arcgis/)
* [Esri Twitter](https://twitter.com/esri)

## Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

## Contributing
Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).

Find a bug or want a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).

## Licensing
Copyright 2018 Esri

Copyright 2019 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
Expand Down
31 changes: 31 additions & 0 deletions analysis/analyze-hotspots/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Analyze Hotspots

Perform hotspot analysis using a geoprocessing service.

In this case, frequency of 911 calls in an area are analyzed.

![](AnalyzeHotspots.png)

## How to use the sample

Select a start and end date using the datepickers between 1/1/1998 and 5/31/1998 respectively. Click the "Analyze hotspots" button to start the geoprocessing job.

## How it works

To analyze hotspots using a geoprocessing service:

1. Create a `GeoprocessingTask` with the URL set to the endpoint of the geoprocessing service.
2. Create a query string with the date range as an input of `GeoprocessingParameters`.
3. Use the `GeoprocessingTask` to create a `GeoprocessingJob` with the parameters.
4. Start the job and wait for it to complete and return a `GeoprocessingResult`.
5. Get the resulting `ArcGISMapImageLayer` using `geoprocessingResult.getMapImageLayer()`.
6. Add the layer to the map's operational layers.

## Relevant API

* ArcGISMapImageLayer
* GeoprocessingJob
* GeoprocessingParameters
* GeoprocessingResult
* GeoprocessingString
* GeoprocessingTask
27 changes: 27 additions & 0 deletions analysis/analyze-hotspots/README.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"category": "Analysis",
"description": "Perform hotspot analysis using a geoprocessing service.",
"ignore": false,
"images": [
"AnalyzeHotspots.png"
],
"keywords": [
"Geoprocessing",
"GeoprocessingJob",
"GeoprocessingParameters",
"GeoprocessingResult"
],
"redirect_from": "/java/latest/sample-code/analyze-hotspots.htm",
"relevant_apis": [
"ArcGISMapImageLayer",
"GeoprocessingJob",
"GeoprocessingParameters",
"GeoprocessingResult",
"GeoprocessingString",
"GeoprocessingTask"
],
"snippets": [
"src/main/java/com/esri/samples/analyze_hotspots/AnalyzeHotspotsSample.java"
],
"title": "Analyze Hotspots"
}
74 changes: 74 additions & 0 deletions analysis/analyze-hotspots/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.5'
}

group = 'com.esri.samples'

ext {
arcgisVersion = '100.6.0'
}

javafx {
version = "11.0.1"
modules = [ 'javafx.controls' ]
}

compileJava.options.encoding = 'UTF-8'

repositories {
jcenter()
maven {
url 'https://esri.bintray.com/arcgis'
}
maven {
url 'http://olympus.esri.com/artifactory/arcgisruntime-repo'
}
}

configurations {
natives
}

dependencies {
compile "com.esri.arcgisruntime:arcgis-java:$arcgisVersion"
natives "com.esri.arcgisruntime:arcgis-java-jnilibs:$arcgisVersion"
natives "com.esri.arcgisruntime:arcgis-java-resources:$arcgisVersion"
}

task copyNatives(type: Copy) {
description = "Copies the arcgis native libraries into the project build directory for development."
group = "build"
configurations.natives.asFileTree.each {
from(zipTree(it))
}
// store native libraries in a common location shared with other samples
into "${System.properties.getProperty("user.home")}/.arcgis/$arcgisVersion"
}

run {
dependsOn copyNatives
mainClassName = 'com.esri.samples.analyze_hotspots.AnalyzeHotspotsLauncher'
}

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes("Main-Class": "$mainClassName")
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}

task productionZip(type: Zip) {
group = 'distribution'
from copyNatives
from jar.destinationDir
into (project.name)
baseName = project.name
}

wrapper {
gradleVersion = '5.0'
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading