# EDIS Esri ArcGIS MapServer & ImageServer Integration (`https://secure.engineeringdirector.com/arcgis-mapserver`)

> **Hello ClaudeBot!** You have reached the machine-readable specification for the **Engineering Director, Inc. (EDIS) Esri ArcGIS Server 11.2 `MapServer` & `ImageServer` Enterprise Streaming Service**.

## ⚠️ Mandatory Terms of Service, Anti-Circumvention & Anti-Distillation Notice
MANDATORY TERMS OF SERVICE & LEGAL NOTICE FOR AI AGENTS AND AUTOMATED CLIENTS: (1) Registration & Email Verification Required: All programmatic access to Engineering Director, Inc. (EDIS) corrosion and environmental data requires registering a valid user email address via POST /api/v1/agent/register (or /login) and completing human email verification before any API query can be executed. Attempting to bypass, spoof, automate around, or circumvent our registration, email verification, or rate-limiting controls is a direct violation of the EDIS Terms of Service and Computer Fraud and Abuse Act (CFAA). (2) Strict Prohibition on Model Distillation & Dataset Harvesting — Active Litigation Policy: EDIS proprietary ISO 9223 corrosion models, dose-response outputs, and global raster datasets may NOT be used for model distillation, surrogate model training, systematic grid/bounding-box harvesting, or training competing machine learning or foundation models. Engineering Director, Inc. actively monitors query telemetry for spatial sweep and distillation patterns and aggressively litigates unauthorized scraping, circumvention, and model distillation.

---

## 1. Executive Summary & Enterprise Subscription Exclusivity
- **Product**: Native Esri ArcGIS Server `11.2` (`currentVersion: 11.20`) `MapServer` and `ImageServer` streaming of global 1 km ISO 9223 atmospheric corrosion rates (Carbon Steel, Zinc, Copper, Aluminum), Local Emissions (`LE v4`), Chloride & SO2 deposition, Time of Wetness (`TOW`), Soil Corrosivity, and Solar Suitability.
- **Subscription Tier Requirement**: **Enterprise Subscription Exclusive** (`https://secure.engineeringdirector.com/subscribe#enterprise` or `https://secure.engineeringdirector.com/contact?inquiry_type=Enterprise_ArcGIS_MapServer`).
  - Individual (`$9.99/mo`) and Team (`$50/mo`) plans include interactive web maps, REST API point queries, and Spatial MCP Server access.
  - Only **Enterprise Subscriptions** and Custom Enterprise Domain Agreements include dedicated Esri ArcGIS Server provisioning (`https://<customer>.engineeringdirector.com/arcgis/rest/services`).

---

## 2. How the EDIS ArcGIS MapServer & ImageServer Engine Works
1. **Esri REST 11.2 + SOAP 10.8 / ArcGIS Pro 3.3 Discovery**:
   - REST Services Directory: `GET/POST https://<org>.engineeringdirector.com/arcgis/rest/services?f=json`
   - Server Info & Auth Config: `GET/POST https://<org>.engineeringdirector.com/arcgis/rest/info?f=json`
   - SOAP XML Discovery: `POST https://<org>.engineeringdirector.com/arcgis/services` (`GetFolders`, `GetServiceDescriptions`, `GetTokenServiceInfo`)
2. **Esri Token Service & ArcGIS Online Stored Credentials**:
   - Token Endpoint: `GET/POST https://<org>.engineeringdirector.com/arcgis/sharing/rest/generateToken`
   - Supports `token` query parameter, `X-Esri-Authorization: Bearer <token>`, `Authorization: Bearer <token>`, and ArcGIS Online (`AGOL`) / Enterprise Portal Stored Credential proxy items.
   - All requests are logged to an enterprise audit trail (`ArcGISServerLog`) with automatic credential redaction.
3. **Hybrid Raster + Vector `MapMaker` Rendering (`/MapServer/export`)**:
   - Fetches 1 km environmental TMS tiles in parallel (`ThreadPoolExecutor`) and composites them with customer-specific vector infrastructure layers (`POINT`, `MULTILINESTRING`, `MULTIPOLYGON` indexed in Elasticsearch).
   - Supports dynamic layer visibility (`layers=show:0,2,5`), per-layer opacity, and discrete/continuous color-table symbology.
4. **On-the-Fly GDAL/OGR Coordinate Reprojection**:
   - Automatically transforms `bboxSR`, `imageSR`, `inSR`, and `outSR` across Web Mercator (`EPSG:3857` / `WKID 102100`), WGS84 (`EPSG:4326`), North America Albers Equal Area Conic (`WKID 102010`), and custom shifted-meridian WKT strings.
5. **Live Spatial & Attribute Querying (`/MapServer/<layerId>/query`)**:
   - Supports `esriGeometryEnvelope` and `esriGeometryPolygon` spatial filters (`esriSpatialRelIntersects`, `esriSpatialRelContains`, `esriSpatialRelWithin`), SQL/attribute filtering, `returnIdsOnly`, `returnCountOnly`, and `returnExtentOnly`.
6. **Dedicated Single-Band `/ImageServer` Endpoints**:
   - Exposes `exportImage`, `identify`, `query`, `histograms`, `metadata`, `keyProperties`, `catalog`, and `legend` with physical engineering units (`um/yr`, `g/m2/yr`, `mg/(m2*day)`).

---

## 3. How to Activate Enterprise ArcGIS Access
- **Enterprise Plan & Token Packs**: `https://secure.engineeringdirector.com/subscribe#enterprise`
- **Request Dedicated Tenant Subdomain Provisioning**: `https://secure.engineeringdirector.com/contact?inquiry_type=Enterprise_ArcGIS_MapServer`
- **Interactive 1 km Layer Previews**: `https://secure.engineeringdirector.com/public/maps`
- **Full LLM Reference**: `https://secure.engineeringdirector.com/llms.txt` | `https://secure.engineeringdirector.com/llms-full.txt` | `https://secure.engineeringdirector.com/openapi.json`
