The ArcGIS Server Adapter for the SpaceCurve System is a server application written in JavaScript on the Node.js platform. The Adapter translates calls to an ArcGIS REST API Map Service interface into REST API calls to the SpaceCurve System. Using this Adapter, hundreds of applications that call ArcGIS REST APIs can query data stored in a SpaceCurve System cluster.
This Adapter provides these ArcGIS Map Service interface features:
-
Layer / Table resources. This Adapter can retrieve a table from the SpaceCurve System and present it as a Feature Layer. For details, see Layer / Table in the ArcGIS REST reference.
-
All Layers and Tables. This Adapter can retrieve metadata about tables from the SpaceCurve System. For details, see All Layers / Tables in the ArcGIS REST reference.
-
Query operations. This Adapter allows both spatial and generic queries for Features from a Feature Layer, which the Adapter gathers from tables within an instance in the SpaceCurve System. For details, see Query in the ArcGIS REST reference.
These instructions describe the steps you will take to use this Adapter and two examples on the SpaceCurve QuickStart Virtual Machine.
Before following these instructions, be sure you installed sample data by following the instructions in the Add Sample Data section of QuickStart for SpaceCurve Virtual Machine.
You can use two browser-based examples in the SpaceCurve VM to show data stored in the SpaceCurve System. These examples use the ArcGIS REST API, which the ArcGIS Server Adapter translates into native SpaceCurve REST API calls. In these examples, you can zoom into and out of the map using the scroll wheel on the mouse.
To run the hexbin example, enter this URL into the FireFox browser:
http://localhost/examples/hexbin
The hexbin example shows areas where earthquakes have occurred. Areas with more earthquakes appear in a redder color.
To run the webmap example, enter this URL into the FireFox browser:
http://localhost/examples/webmap
The webmap example shows geographic points in a dataset. You can choose a table, a field in the table, an operator and a value. Matches on the field will appear as squares on the map.
Data Types
When you choose a Field to query, notice the data type name that appears in gray text when the Value field is empty. For example, many fields have a data type of esriFieldTypeString. You can match all strings of a field of this type by choosing Operator LIKE and Value '%'.
Bounding Box
This example only shows results within a degree-based extent, which centers on a single latitude-longtitude point. By default, only points within 5 degrees both north & south and 5 degrees both east & west of Seattle, Washington will appear. A rectangle appears around this area. To show a larger area, set a larger extent. To show a different area, enter a different center point, in latitude-longtitude coordinates.
See Cities that Start With S
Enter these settings to query for cities near Seattle that start with the letter S.
- Table: schema.us_cities
- Field: NAME
- Operator: LIKE
- Value: 'S%'
Hit Query to view the results. You can hover over map points to see city details.
This adapter has these limitations:
-
The adapter is only compatible with SpaceCurve tables that use a GeoJSON Feature object schema, e.g.
{ "type" : "Feature", "geometry" : { ... }, "properties" : { ... } }
-
The adapter only transfers JSON and does not support tile exports.
The ArcGIS Server Adapter for the SpaceCurve System is 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 of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.