Skip to content

Commit 22b9585

Browse files
authored
100.6.0 (#400)
* update api version * change api version to 100.5.0 * change version to 100.5.0 * start updates for java 11 * update java 11 parts * add dependencies for all platforms * Delete module-info.java * Update README Update README to alert Java 11 users to potential exceptions which may occur when running the project. Providing a suggested workaround from the OpenJavaFX docs. * Update README.md * add an integrated mesh layer sample * update arcgis version * use javafx plugin * remove jar task config * update arcgis version * move stage show * add point cloud data to sample data downloads * view point cloud data offline sample * Update build.gradle * change camera viewpoint * remove unused imports * update image * update api version * edit about the data and additional info sections * fix comment * Removed errant full stop * Open Mobile Scene Package (#318) * Gradle script includes path to download mspk file (further work required here) and implementation of sample in Java * Create README.md * Create OpenMobileScenePackage.png * Update typo in README * Updated gradle to point to correct data on AGOL * Update to sample code following review * Updates to ReadMe following review * Additional update to read me to include isDirectReadSupported.get * Updated from markdown to HTML * Remove id tags from HTML * Map reference scale (#319) * Create MapReferenceScaleSample.java * Set up MVC structure for sample * Set up basic map with MVC structure * Added label which updates scale of map as it changes * Set up means to change the map view to the selected reference scale * Set up check boxes for map layers * Update MapReferenceScaleController.java * Update MapReferenceScaleController.java * Allow string in combobox, split to return double to feed into map reference scale * Link checkbox with map layer to set reference scale * Method descriptions and remove unused imports * Fix indents * Create MapReferenceScale.png * Create README.md * Convert markdown to HTML * Addressed comments from review. ComboBox now double, vBoxes will load after map has loaded * Add a method to handle setting the reference scale when interacting with the combobox and the scale sync button. * Code updates following review removed unneeded label, added if loaded statement, and refactored map reference scale. Also updated Readme to account for behavior change. * move checkbox logic in with instanceof check * Update MapReferenceScaleController.java * Corrected title for sample * Merge master into dev (#322) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Allow downloading of non zip sample data (#324) * Allow downloading of non zip sample data * point scene layer sample (#323) * point scene layer sample * Merge master into Dev (#329) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Update slider to show values from 1-5 rather than 0-5 (#328) * remove online elevation data source (#327) * remove online elevation data source * remove unneeded ArcGISScene object * View content beneath terrain surface (#325) * Initiating sample with Scene URL * add done loading listener for changes * portal item entry for data * Add readme and image * Update ViewContentBeneathTerrainSurfaceSample.java * update build and refactor float code * Update ViewContentBeneathTerrainSurfaceSample.java * Add layer view state changed listener * Update ViewContentBeneathTerrainSurface.png * Address comments following review * update comment for add done loading listener on to scene * Update README.md * remove unused imports * group layers sample (#331) group layers sample * update version, delete extra copy of samples data * Play kml tours (#332) * play a kml tour sample * Generate offline map with local basemap (#330) * added dialog box for choosing which basemap to use * Update GenerateOfflineMapWithLocalBasemap.java * Update GenerateOfflineMapWithLocalBasemap.java * Update build.gradle * refactoring and neatening up the code * Update GenerateOfflineMapWithLocalBasemap.java * Ensure that the file exists before prompting user to find local file * Move standard code into private methods to draw attention to new API functionality * Add image and README * Update GenerateOfflineMapWithLocalBasemap.java * Update build.gradle * code restructuring (#333) * code restructuring * comment edits * Update image and readme * update description of generateOfflineMapDialog class * convert fields to local variables * convert readme from md to html * Merging Master into Dev (#345) * Browse wfs layers (#336) browse wfs layers sample * Raster rendering rule (#343) * create class, bring in image service raster, display it * zoom to extent of raster service * add functionality to apply hard-coded raster rendering rule * build and populate renderingruleInfoListView * change rule ListView for DropDown * make raster rendering rule apply on selection in drop-down * refactor imageServiceUrl * refactor applying rendering rule into separate function * refactor populating drop down and building HashMaps into own functions * remove HashMap, find rule through list index@ * improve comments * private final String imageServiceUrl * Add screenshot and update ReadMe * fix screenshot link in README * new screenshot * use string directly as argument for ImageServiceRaster * README from MD to HTML * bring methods back into start * use ComboBox<RenderingRuleInfo> and string converter * add vbox, label to show rendering rule descr. * rearrange imports * remove imageServiceRaster.loadAsync(); * add newline to label, update screenshot * change indentation to 2 spaces * Update README.md - remove html IDs and img alt * add load status indicator * fix imports * make ArgGISMap local * remove ComboBox.setEditable(False); * syntax, adding stylesheet * variable for ImageServiceRaster uri, update readme * formatting terminology in 'how it works' * readme markdown formatting * remove unused imports * comment for auto select of first rule * default selection now shows description * variable naming, remove unused code, factoring, comments * revise readme * comments, uri variable instantiated at first use * improve readme use-case * readme formatting, typos * tag formatting, typos * Merge `master` into `dev` (#350) * Browse wfs layers (#336) browse wfs layers sample * Raster rendering rule (#343) * Get elevation at a point (#341) * GetElevationAtAPoint - update screenshot (#348) * Token authentication (#347) * Update build.gradle * Allows user to click a value on slider to change exaggeration (#351) (#353) * Allows user to click a value on slider to change exaggeration * remove value changed listener, move annotation to correct place, add space before bracket * merge master into dev for ClosestFacilityStatic (#358) * Allows user to click a value on slider to change exaggeration (#351) * Closest facility static (#346) * merge master into dev (#362) * Clean up readme (#356) * fix/spatial-operations-reset-button (#359) * Edit and sync features (#352) * merge master into dev (#368) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * merge master into dev - oAuth Sample patch (#369) * Tschie/split (#387) separate samples into individual gradle projects, convert readmes to markdown, add readme metadata files * fix naming * Routing around barriers (#354) * build class with scene * render street map and add controls panel * add ui elements * add stops with lables on mouse click * add toggle of checkboxes * create pin symbols, number the stops incrementally * solve route task and display it, display instructions * can add barriers to map, switch between adding stops and barriers * implement barriers in routing, implement reset button * set the mode to adding stops on sample start * clear routes / barriers on right click * clear previous route when calculating new route * rearrange code for readability * symbol colours, fix remove last barrier * improve deleting stops and barriers * ui improvements, comments * improve comments/code structure, pin design * split sample into MVC structure with fxml * edit ui and comments * arrange code, comments, ui improvements * add display of travel time and distance * ui tweaks, add screenshot * add how it works, add use case * move variables from class to function scope * variable naming * README to html * revise readme * revise readme * add code comments * tidy imports * show route length in miles * whitespace * improve return compositesymbol * improve string formatting in route info * remove TODO * route length shows in km * remove unneeded TODOs * comment formatting * comment wording * comment wording * var naming, refactoring * fix bad routing condition, remove unused imports * comments and refactoring * barrier/route symbols to instance variables * create route task at launch * improve route solving and UI * whitespace * functions -> in-line code * readme edits * variables to method scope * fxml formtting, commenting, ui improvements * fxml line breaks * change 2nd order lists to ul * add normalizing geometry code * fxml refactor * reset title pane, pin image to class var * improve route info fetch * route/stop lists -> linked lists * improve removing stops/barriers * refactor click handling * refactor click handling * improve deleting stops/barriers * refactor adding/deleting stops * fixes * comments * indentation * formatting sample file * update README.md, comments * determine route automatically * use renderer for route graphics * bug fixes, refactoring * formatting * README.md to MD * remove extra backtick * add gradle wrapper * set main class to launcher * update README.md * Find service areas for multiple facilities (#367) * create basic class with ui elements, symbols * load in feature table, layer, and zoom to extent * solve service area task and display * UI improvements * imports * add facilities to task through featuretable * formatting * refactoring, ui fixes * comments and formatting * rm comment * add readme and screenshot * readme and comment edits * rename, remove reset button * rename, reduce service area * update readme to mirror design * comments * remove unused SimpleFillSymbol * graphics changes * change basemap to grey canvas * refactoring and variable naming * refactoring * readme wording * comments * screenshot * 3/5min service areas, yellow/red color * comments, bigger facility symbols * remove unneeded code, comment improvements, loop indices * describe both cutoffs in readme * service area comment * readme to html * smaller service areas, new screenshot * update readme for new service areas * update README.md, sample title * implement review changes * update settings.gradle * update build.gradle * package and folder names * Sample title: Area -> Areas * add gradle wrapper * fix main class name * implement review changes * update README.md, comments * update screenshot * update screenshot * Fix comment in ColormapRendererSample.java (#391) * Patch/create and save map - default challenge handler (#388) * implement default challenge handler * Update CreateAndSaveMapController.java fix typo * Update README.md * update README.md, code formatting * remove ShowMessage() method * review changes, update README to standard format * code formatting * Read symbols from mobile style file (#357) * create basic sample class with stage and map * split into main class, controller, fxml * load and search stylx file * click adds symbol to map * add styles to preview * add style to combobox, build preview on select * auto-build symbol preview and add on click * add slider to control size * add color selection dropdown * preview symbols in combobox * color only affects first symbol layer * code formatting, change first color to yellow * fix symbol and graphic sizing bug * improve variables * comboboxes to listviews * UI improvements and comments * refactoring and comments * make preview not resize with slider * refactoring * add readme * allow empty symbol selection, resize preview, fix mouse clicks * fix size slider preview * add labels and reset button * ui improvements * formatting and comments * add red color option, add screenshot * fxml formatting * formatting * formatting * refactoring * comments and refactoring * fxml refactor * formatting * comments and refactoring * swap SymbolLayerInfo class for HashMap * comments * use SymbolStyleSearchResult directly to access symbols * comments and refactoring * implement slider functionality through fxml * formatting * improve use case * use case wording * improve updateSymbolSize() * Revert "improve updateSymbolSize()" This reverts commit 372e73c. * refactor mouse click into fxml * add default switch case * inner classes to bottom of the file * reorder for consistency * whitespace * listview array instead of list * refactoring * ui improvements * readme improvements * review corrections * commen * change colour options * slider reacts to click and to drag * implement review changes * update README.md * inner classes to private, override methods * Update README.md * add gradle wrapper * fix data download * implement review changes * review changes, implement color picker * code formatting * Update geopackage sample (#374) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * update read geopackage design * update readme code snippets * improve comments * remove unneeded comments * comment wording * implement review corrections * whitespace * remove unrelated files * implement review changes * remove css stylesheet * clean up some comments * add readme metadata file * Patch/oauth default challenge handler (#375) * oauth with default challenge handler * code formatting and comments * correct redirect uri * remove fxml, formatting * revert gradle-wrapper.jar * comments * readme updated for def challenge handler * implement review changes * rename class file to match docsgst * rename package * implement default challenge handler * restore build.gradle * Revert "restore build.gradle" This reverts commit 35c1df0. * Revert "implement default challenge handler" This reverts commit bd98478. * fix screenshot file name * revert package and class name * update README.md * revert sample name, update README.metadata.json * implement review changes * remove extra comma * Routing around barriers - add isStillSincePress to mouse events (#394) * add isStillSincePress to mouse events * remove error log from error dialog * oauth - README.metadata.json formatting (#395) * formatting * mmpk to class member (#398) * Patch/dictionary symbol style update constructor (#393) * update DictionarySymbolStyle constructor * update README.md and comments * update Item ID * update constructor in remaining samples * update README.md, README.metadata.json * optimise imports * update xml files to remove control points * get Mil2525d xml from AGOL where applicable * remove xml in resources * fix typo on mil2525d * Patch/geometry engine simplify - add isSimple check (#399) * add isSimple check * update Readme.md * update comments, update metadata.json * Integrated windows auth (#370) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * working sample * comments, formatting, UI improvements * UI, screenshot, readme * readme formatting * code formatting * ui improvements, screenshot * comments, formatting * readme tags * javadoc comments * ui improvements * ui improvements * refactoring * comments * address review suggestions * smaller UI * update screenshot * listview holds portal item ids * Update README.md, comments * update README.md * fix package and path names * delete irrelevant files * readme to MD * add README.metadata.json * updated README.metadata.json * remove public search, refactoring * whitespace * cell factory to class, fxml tidying * error handling, comments, refactoring * error handling * remove loading/portal info text * class member to local var * update Readme.md for UI changes and review suggestions * refactoring * fix typo * Move construction of portal query parameters to its own line * small UI improvements, update screenshot * update README.md for screenshot link (#403) * Integrated windows auth - update README.metadata.json (#402) * update RAEDME.metadata.json * update tags in README.metadata.json * move local data download logic to settings.gradle (#401) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * corrects WKID to 4326 (#389) * corrects WKID to 4326 * use SpatialReferences.getWgs84 * move local data download logic to settings.gradle * move data download logic to settings.gradle * fix data paths * fixing data download for mil2505 xml file for sample viewer v2504 (#404) * update DictionarySymbolStyle constructor * update README.md and comments * update Item ID * update constructor in remaining samples * update README.md, README.metadata.json * optimise imports * update xml files to remove control points * get Mil2525d xml from AGOL where applicable * remove xml in resources * move data download to settings.gradle, fix paths * fix typo * fix directory name * fix local data folder * update arcgis version to 100.6.0 * put native libraries in .arcgis folder * Honor mmpk expiration (#397) * initial commit * working sample * refactoring * refactoring, comments * copyright statement in Launcher class * data download to settings.gradle * change expiration display to static date, CSS edits * update screenshot * expiration message to sentence case * fix settings.gradle. Again. * plement review suggestions * formatting * update README.metadata.json * comments * Set annotation sublayer visibility (#396) * show scale in label * load mmpk * add checkboxes with labels * activate checkboxes, change checkbox text color dynamically * update label color * fix checkboxes, comments * optimise imports, copyright comment * labels and screenshot * update screenshot * update runtime build, update README.md * mmpk to class member * formatting and comments * javadoc comments * restore show_callout files * move downloading of sample data to settings.gradle * fix package naming * move scale label to control panel, check mmpk contains maps * fix checkbox text colours * UI fixes and label colouring * data download in settings.gradle * update README.md * update screenshot for UI changes * fix settings.gradle * fix settings.gradle * formatting * README.metadata.json redirect url to blank string * update README.md * update arcgis version to 100.6.0 * Update README.md * remove IDE images * remove extra newline * add bintray download badge
1 parent cd6f50a commit 22b9585

File tree

2,217 files changed

+80935
-10694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,217 files changed

+80935
-10694
lines changed

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# ArcGIS Java SDK
2+
data.zip*
23
bin/
34
build/
45
out/
56

67
# Local configuration file (sdk path, etc)
78
local.properties
89
.gradle/
9-
/samples-data/
10-
/jniLibs/
11-
/resources/
10+
samples-data/
1211

1312
# Intellij project files
1413
*.ipr

README.md

+37-49
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,68 @@
11
# ArcGIS Runtime Java SDK Samples
2-
### 100.5.0
3-
This project includes a set of samples demonstrating how to accomplish various mapping and GIS tasks with the ArcGIS Runtime SDK for Java.
42

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

7-
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).
5+
This repo contains a set of sample projects demonstrating how to accomplish various mapping and GIS tasks with the ArcGIS Runtime SDK for Java.
86

9-
This guide has instructions for running samples using the command line or with Eclipse and IntelliJ IDEA.
7+
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.
108

11-
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).
9+
Installing Gradle is not necessary since each sample includes the Gradle wrapper.
1210

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

16-
On Linux/Mac
17-
```
18-
$ ./gradlew run -PmainClass="com.esri.samples.scene.display_scene.DisplaySceneSample"
19-
```
13+
### IntelliJ IDEA
2014

21-
On Windows
22-
```
23-
> gradlew.bat run -PmainClass="com.esri.samples.scene.display_scene.DisplaySceneSample"
24-
```
15+
1. Open IntelliJ IDEA and select _File > Open..._.
16+
2. Choose one of the sample project directories (not the category folder) and click _OK_.
17+
3. Select _File > Project Structure..._ and ensure that the Project SDK and language level are set to use Java 11.
18+
4. Open the Gradle view with _View > Tool Windows > Gradle_.
19+
5. In the Gradle view, double-click the `run` task under _Tasks > application_ to run the app.
20+
21+
### Eclipse
22+
23+
1. Open Eclipse and select _File > Import_.
24+
2. In the import wizard, choose _Gradle > Existing Gradle Project_, then click _Next_.
25+
3. Choose one of the sample project directories (not the category folder) as the project root directory.
26+
4. Click _Finish_ to complete the import.
27+
5. Open the Gradle Tasks view with _Window > Show View > Other... > Gradle > Gradle Tasks_.
28+
6. In the Gradle Tasks view, double-click the `run` task under _{project_name} > application_ to run the app.
2529

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

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

30-
## Java 11
35+
### Java 11
3136
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:
3237
```
3338
systemProperty "java.library.path", "C:\tmp"
3439
```
3540

36-
## Offline sample data
37-
Some samples require offline data. A `samples-data` directory will automatically download to the project root the
38-
first time you call the `run` task.
39-
40-
## Importing into an IDE
41-
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.
42-
43-
### IntelliJ IDEA
44-
After cloning the samples, open IntelliJ IDEA and follow these steps:
45-
46-
1. Click *Import Projects* from the Welcome Screen or select *File > New > Project from Existing Sources*.
47-
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.
48-
3. Click *OK* at the next dialog to complete the import.
41+
### Offline sample data
42+
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.
4943

50-
<img src="./intellij_proj.png" alt="IntelliJ IDEA project structure" height="200">
44+
## Requirements
5145

52-
To view all of the gradle tasks including the Run task, go to *View > Tool Windows > Gradle*.
53-
54-
Alternatively, you can open the sample's main class, right-click, and select *Run* from the dropdown menu.
55-
56-
### Eclipse
57-
To import the samples with Eclipse's default gradle plugin, follow these steps:
58-
59-
1. Open Eclipse and select *File > Import*.
60-
2. In the import wizard, choose *Gradle > Gradle Project*, then click Next.
61-
3. Select the `arcgis-runtime-samples-java` directory as the project root directory.
62-
4. Click *finish* to complete the import.
63-
64-
<img src="./eclipse_proj.png" alt="Eclipse project structure" height="200">
46+
See the Runtime SDK's [system requirements](https://developers.arcgis.com/java/latest/guide/system-requirements-for-quartz.htm).
6547

6648
## Resources
49+
6750
* [ArcGIS Runtime SDK for Java](https://developers.arcgis.com/java/)
51+
* [Toolkit](https://github.com/Esri/arcgis-runtime-toolkit-java)
6852
* [ArcGIS Blog](https://blogs.esri.com/esri/arcgis/)
6953
* [Esri Twitter](https://twitter.com/esri)
7054

55+
## Issues
56+
57+
Find a bug or want to request a new feature? Please let us know by submitting an issue.
58+
7159
## Contributing
72-
Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).
7360

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

7663
## Licensing
77-
Copyright 2018 Esri
64+
65+
Copyright 2019 Esri
7866

7967
Licensed under the Apache License, Version 2.0 (the "License"); you may not
8068
use this file except in compliance with the License. You may obtain a copy

analysis/analyze-hotspots/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Analyze Hotspots
2+
3+
Perform hotspot analysis using a geoprocessing service.
4+
5+
In this case, frequency of 911 calls in an area are analyzed.
6+
7+
![](AnalyzeHotspots.png)
8+
9+
## How to use the sample
10+
11+
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.
12+
13+
## How it works
14+
15+
To analyze hotspots using a geoprocessing service:
16+
17+
1. Create a `GeoprocessingTask` with the URL set to the endpoint of the geoprocessing service.
18+
2. Create a query string with the date range as an input of `GeoprocessingParameters`.
19+
3. Use the `GeoprocessingTask` to create a `GeoprocessingJob` with the parameters.
20+
4. Start the job and wait for it to complete and return a `GeoprocessingResult`.
21+
5. Get the resulting `ArcGISMapImageLayer` using `geoprocessingResult.getMapImageLayer()`.
22+
6. Add the layer to the map's operational layers.
23+
24+
## Relevant API
25+
26+
* ArcGISMapImageLayer
27+
* GeoprocessingJob
28+
* GeoprocessingParameters
29+
* GeoprocessingResult
30+
* GeoprocessingString
31+
* GeoprocessingTask
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"category": "Analysis",
3+
"description": "Perform hotspot analysis using a geoprocessing service.",
4+
"ignore": false,
5+
"images": [
6+
"AnalyzeHotspots.png"
7+
],
8+
"keywords": [
9+
"Geoprocessing",
10+
"GeoprocessingJob",
11+
"GeoprocessingParameters",
12+
"GeoprocessingResult"
13+
],
14+
"redirect_from": "/java/latest/sample-code/analyze-hotspots.htm",
15+
"relevant_apis": [
16+
"ArcGISMapImageLayer",
17+
"GeoprocessingJob",
18+
"GeoprocessingParameters",
19+
"GeoprocessingResult",
20+
"GeoprocessingString",
21+
"GeoprocessingTask"
22+
],
23+
"snippets": [
24+
"src/main/java/com/esri/samples/analyze_hotspots/AnalyzeHotspotsSample.java"
25+
],
26+
"title": "Analyze Hotspots"
27+
}
+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
plugins {
2+
id 'application'
3+
id 'org.openjfx.javafxplugin' version '0.0.5'
4+
}
5+
6+
group = 'com.esri.samples'
7+
8+
ext {
9+
arcgisVersion = '100.6.0'
10+
}
11+
12+
javafx {
13+
version = "11.0.1"
14+
modules = [ 'javafx.controls' ]
15+
}
16+
17+
compileJava.options.encoding = 'UTF-8'
18+
19+
repositories {
20+
jcenter()
21+
maven {
22+
url 'https://esri.bintray.com/arcgis'
23+
}
24+
maven {
25+
url 'http://olympus.esri.com/artifactory/arcgisruntime-repo'
26+
}
27+
}
28+
29+
configurations {
30+
natives
31+
}
32+
33+
dependencies {
34+
compile "com.esri.arcgisruntime:arcgis-java:$arcgisVersion"
35+
natives "com.esri.arcgisruntime:arcgis-java-jnilibs:$arcgisVersion"
36+
natives "com.esri.arcgisruntime:arcgis-java-resources:$arcgisVersion"
37+
}
38+
39+
task copyNatives(type: Copy) {
40+
description = "Copies the arcgis native libraries into the project build directory for development."
41+
group = "build"
42+
configurations.natives.asFileTree.each {
43+
from(zipTree(it))
44+
}
45+
// store native libraries in a common location shared with other samples
46+
into "${System.properties.getProperty("user.home")}/.arcgis/$arcgisVersion"
47+
}
48+
49+
run {
50+
dependsOn copyNatives
51+
mainClassName = 'com.esri.samples.analyze_hotspots.AnalyzeHotspotsLauncher'
52+
}
53+
54+
jar {
55+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
56+
manifest {
57+
attributes("Main-Class": "$mainClassName")
58+
}
59+
from {
60+
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
61+
}
62+
}
63+
64+
task productionZip(type: Zip) {
65+
group = 'distribution'
66+
from copyNatives
67+
from jar.destinationDir
68+
into (project.name)
69+
baseName = project.name
70+
}
71+
72+
wrapper {
73+
gradleVersion = '5.0'
74+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)