The service definition extensions provides the support for ArcGIS .sd files. Uploading an SD file to an item creates this extension and if the item is public a service is created on the ScienceBase ArcGIS server.
Properties
Property | Type | Description |
---|---|---|
className | String | = "gov.sciencebase.catalog.item.facet.ServiceDefinitionFacet" A discriminator used by the system to identity the extension type |
name | String | name of the SD file |
servicePath | String | Identifier for the service on ArcGIS, this is usually the Item ID and a MapServer service would be hosted at https://www.sciencebase.gov/arcgis/rest/services/Catalog/<ItemID>/MapServer |
serviceId | String | (same as servicePath) |
processingState | String | "success", "failed", "pending", "void". Indicates the status of loading this from ScienceBase Catalog into the ScienceBase ArcGIS server |
processingMessage | String | A note about the satus |
filePathUsed | String | An identifier used to locate the file in the ScienceBase file repository |
serverType | String, URI | MapServer or ImageServer. If not specified, MapServer is assumed |
files | List<ItemFile> | A list of files including the SD file and possibly a thumbnail image if one was found in the SD |
enabledServices | List | list of services enabled on ArcGIS, such as "KmlServer", "WMSServer" |
boundingBox | Map<String, Double> | the bounding box, see example for details |
Example
{ className: "gov.sciencebase.catalog.item.facet.ServiceDefinitionFacet", name: "SRLCC_2011_Fleishman_NavajoNation_MountainLionConnectivity.sd", servicePath: "557f6421e4b023124e8ef848", serviceId: "557f6421e4b023124e8ef848", processingState: "success", processingMessage: "", filePathUsed: "__disk__6e/1f/ba/6e1fbac78b0f04089919e6738e117d9c3d12676c", serverType: "", files: [ { name: "SRLCC_2011_Fleishman_NavajoNation_MountainLionConnectivity.sd", title: "", contentType: "x-gis/x-arcgis-service-def", contentEncoding: null, pathOnDisk: "__disk__6e/1f/ba/6e1fbac78b0f04089919e6738e117d9c3d12676c", processed: false, processToken: null, imageWidth: null, imageHeight: null, size: 22307542, dateUploaded: "2015-06-15T23:46:41Z", originalMetadata: true, useForPreview: false, s3Object: null, url: "https://www.sciencebase.gov/catalog/file/get/557f6421e4b023124e8ef848?f=__disk__6e%2F1f%2Fba%2F6e1fbac78b0f04089919e6738e117d9c3d12676c" }, { name: "thumbnail.png", title: null, contentType: "image/png", contentEncoding: null, pathOnDisk: "__disk__10/d9/ec/10d9ec85748e5f77836f5b38929795c474727de1", processed: null, processToken: null, imageWidth: 200, imageHeight: 133, size: 46494, dateUploaded: "2015-06-15T23:47:45Z", originalMetadata: null, useForPreview: null, s3Object: null, url: "https://www.sciencebase.gov/catalog/file/get/557f6421e4b023124e8ef848?f=__disk__10%2Fd9%2Fec%2F10d9ec85748e5f77836f5b38929795c474727de1" } ], enabledServices: [ "KmlServer", "WMSServer" ], boundingBox: { minY: 34.2011138863826, minX: -113.050594383325, maxY: 38.2818302593492, maxX: -107.001528548052 } }