Task is a useful thing, a class used in AJS to solve a variety of messy tasks. It has many subcategories, which are used for spatial analysis, for spatial queries, and so on.
This is a supplementary study of the first, but also the first step in learning, I will change the wording.
I'm going to use mind maps to better present logical information.
The inheritance relationship of the task class
The task class inherits from the accessor class, and it has 17 subclasses. Don't worry, picking, rarely can use more than 5 subclasses of the AJS program, unless it is a very large AJS integrated system.
The above are my familiar querytask,routetask,findtask,geoprocessor,identifytask and Locator.
Among them, according to the name and experience, may also be used frequently are:serviceareatask,closestfacilitytask,geometryservice and Imageserviceidentifytask These several, the front two and Routetask are the same network analysis.
To the supplementary study this paragraph, no longer detailed introduction code, to introduce is also extract the key code for analysis.
Familiar 6 classes that have been used
First introduce the familiar task subclass, from the "What use", "How to Instantiate", "supporting class" Three aspects of the narrative, specific usage, please check the official API and related examples:
"Querytask" "Routetask" "Findtask" "Geoprocessor" "Identifytask" "Locator" (hyperlink to my blog)
Directly to the previous large form:
Class name \ Distinguished Item |
What's the use? |
How to Instantiate |
Matching classes |
Main method and return value type |
Querytask |
|
|
|
|
Routetask |
|
|
|
|
Findtask |
|
|
|
|
Geoprocessor |
|
|
|
|
Identifytask |
|
|
|
|
Locator |
|
|
|
|
And then look at the other 4 classes
(not to be continued)
ArcGIS API for JavaScript 4.2 learning note [31] (Supplemental learning) Task class