The "gridsurfacedata" web service provides meta data about a grid surface dataset.
A typical URL is: http://myserver.mycompany.com:8080/INTGeoServer/json/horizondata?filePath=gridsurfaces_BaseSaltDepthSediM.grid
The following parameters are available:
filePath: the relative path of the specified dataset. This is a required parameter. If a path encoded is used, this path is encoded.
Here is an example response. This response has been formatted to improve readability
{
"name": "gridsurfaces_BaseSaltDepthSediM",
"gridsurfaces": [
{
"name": "gridsurfaces_BaseSaltDepthSediM",
"rowCount": 169,
"columnCount": 169,
"originX": 0.0,
"originY": 0.0,
"rotationAngle": 0.0,
"values": [
{
"identifier": 0,
"name": "X",
"minimum": 0.0,
"maximum": 13440.0,
"step": 80.0,
"isKey": true,
"formatType": 64,
"description": "X"
},
{
"identifier": 1,
"name": "Y",
"minimum": 0.0,
"maximum": 13440.0,
"step": 80.0,
"isKey": true,
"formatType": 64,
"description": "Y"
},
{
"identifier": 2,
"name": "Time",
"minimum": 1407.427490234375,
"maximum": 3990.4111328125,
"step": 1.0,
"isKey": false,
"formatType": 64,
"description": "Time"
}
]
}
]
}
The name entry represents the name of the grid surface dataset. This name is typically the file name without the extension.
The gridsurfaces node describes the collection of grid surfaces that the file contains. Typically, there is only one, but future formats might have several
The rowcount is the number of rows
The columnCount is the number of columns
The originX is the X position of the grid's corner for the first row and the first column
The originY is the Y position of the grid's corner for the first row and the first column
The rotationAngle is the angle (in radians) of the grid, taken from the grid's first corner and relative to the X axis
The values sections is a collection of all fields of this grid surface. For each field in the values section:
identifier is the unique id of a field
name is the name of a field
minimum is the minimum value of a field
maximum is the maximum value of a field
step is the step value of a field
isKey indicates whether a field is a key, meaning you can search points by this field (there is no search service at this time)
formatType: specifies the integer representation of a data type
description: specifies the description of a field