# OGCFeatureAPIReferenceLoader { #brdr.loader.OGCFeatureAPIReferenceLoader }

```python
loader.OGCFeatureAPIReferenceLoader(
    url,
    id_property,
    collection,
    aligner,
    partition=1000,
    limit=DOWNLOAD_LIMIT,
    is_reference=True,
)
```

Loader for OGC API - Features services.

Fetches data using spatial filters (BBOX) and handles partitioning
of large datasets based on the thematic extent.

## Methods

| Name | Description |
| --- | --- |
| [load_data](#brdr.loader.OGCFeatureAPIReferenceLoader.load_data) | Validates the OGC service and downloads data within the thematic extent. |

### load_data { #brdr.loader.OGCFeatureAPIReferenceLoader.load_data }

```python
loader.OGCFeatureAPIReferenceLoader.load_data()
```

Validates the OGC service and downloads data within the thematic extent.

#### Returns {.doc-section .doc-section-returns}

| Name   | Type                                                                     | Description                                  |
|--------|--------------------------------------------------------------------------|----------------------------------------------|
|        | [AlignerFeatureCollection](`brdr.feature_data.AlignerFeatureCollection`) | The downloaded and processed reference data. |

#### Raises {.doc-section .doc-section-raises}

| Name   | Type                       | Description                                                                                                  |
|--------|----------------------------|--------------------------------------------------------------------------------------------------------------|
|        | [ValueError](`ValueError`) | If thematic data is missing, the collection is not found, or the service does not support the Aligner's CRS. |

#### Notes {.doc-section .doc-section-notes}


```mermaid
graph LR
Thematic[Thematic Data Extent] --> Buffer[Apply MAX_REFERENCE_BUFFER]
Buffer --> Partition[Split into BBOX Partitions]
Partition --> Request[HTTP GetFeature/Items]
Request --> Merge[Merge Results into Collection]

subgraph Service[External OGC/WFS Service]
Request
end
```