> ## Documentation Index
> Fetch the complete documentation index at: https://shapely.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Feature Extractor

>  Feature Extractor automatically calculates geometric properties **Area, Compactness, AspectRatio, Solidity, Rectangularity, CentroidX, CentroidY** from Shapely geometry objects and organizes them into a structured feature set ready for machine learning.

It eliminates the need to manually extract and organize geometric measurements. 

<Note>
  Feature Extractor generates a consistent set of numerical features from any Shapely geometry. This ensures all your data points have the same feature structure, which is **required** by all ML models.
</Note>

### Use Cases

* **Automated feature creation**: Automatically extract area, perimeter, centroid coordinates, bounding box dimensions, and other properties from geometries.
* **Batch processing**: Extract features from hundreds of geometries at once for large-scale analysis.
* **ML pipeline preparation**: Create the input feature matrix needed for training classification, clustering, or regression models.

<a href="/images/ML/Feature Extractor.png" target="_blank">
  <img src="https://mintcdn.com/shapely/asBiXHBRV0o--5dI/images/ML/Feature%20Extractor.png?fit=max&auto=format&n=asBiXHBRV0o--5dI&q=85&s=5252ad5bb8b73e087696c6e5e9a0e07b" className="pointer-events-none" style={{ borderRadius: '0.5rem', border: '1px solid rgba(0,0,0,0.1)' }} width="1796" height="536" data-path="images/ML/Feature Extractor.png" />
</a>
